Redirect old forum URLs to new format
2016-04-26, 9:00 (This post was last modified: 2016-04-26, 9:04 by Brian.)
2016-04-26, 9:00 (This post was last modified: 2016-04-26, 9:04 by Brian.)
It looks like search engines are sending people to the old forum URLs.
Here is an example. This is now a 404 error:
http://forums.ldraw.org/read.php?20,16260,18104
It should redirect to here:
http://forums.ldraw.org/thread-16260-pos...l#pid18104
On apache servers this can be accomplished with mod_rewrite and an htaccess file. The rewrite syntax can capture the old numbers and "rewrite" the URL into the new format. Additionally, the rewrite can serve a 301 response, which tells search engines the resource is at the new location permanently.
Here is an example. This is now a 404 error:
http://forums.ldraw.org/read.php?20,16260,18104
It should redirect to here:
http://forums.ldraw.org/thread-16260-pos...l#pid18104
On apache servers this can be accomplished with mod_rewrite and an htaccess file. The rewrite syntax can capture the old numbers and "rewrite" the URL into the new format. Additionally, the rewrite can serve a 301 response, which tells search engines the resource is at the new location permanently.