New forum kills old links

The recent forum upgrade has 404'ed a bunch of old links. Offhand, I've been able to find these formats which no longer work:
Code:
http://forums.freebsd.org/showthread.php?p=237291
http://forums.freebsd.org/showpost.php?p=237291
http://forums.freebsd.org/member.php?u=38686
The links now should be of the format:
Code:
http://forums.freebsd.org/viewtopic.php?p=237291   (both for showthread and showpost?)
http://forums.freebsd.org/memberlist.php?mode=viewprofile&u=38686
Because the IDs have been preserved, if you're using Apache you should be able to fix these globally, safely and trivially with a rewrite rule for each of the stragglers. Admittedly it's been a while since I've had to muck with an httpd.conf file, and I hate doing it (manager: "Hey! Why is the website down?!?") but dredging through our file at work I think the relevant lines would be:
Code:
RewriteRule  ^/showthread.php?p=(.+) /viewtopic.php?p=$1[NE,R]
RewriteRule  ^/showpost.php?p=(.+) /viewtopic.php?p=$1[NE,R]    # Unless I am missing a thread/post/topic distinction
RewriteRule  ^/member.php?u=(.+) /memberlist.php?mode=viewprofile&u=$1[NE,R]
Someone more competent with Apache than myself should check the rule, particularly the flags. Apache docs. I'd presume non-Apache web servers have similar capabilities?
Note that in addition to all the now-dead links that exist in the world-at-large, the forum itself has self-referential links that are currently AWOL.

You may want to grep through the server logs for 404 entries to see if there are other classes of dead links that could be similarly fixed.

Thanks,
CAT
 
Back
Top