• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

New forum kills old links



Thanks: 9
Messages: 52

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:
The links now should be of the format:
http://forums.freebsd.org/viewtopic.php?p=237291   (both for showthread and showpost?)
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:
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.