[thelist] moving from static to dynamic content
Brian Cummiskey
brian at hondaswap.com
Mon Sep 17 16:24:58 CDT 2007
Mark,
a 301 redirect is your best bet. This will keep your old links
working, and the search engines will get notified of the new location
and update the URL of the location.
depending on the structure, you could pull this off in just a couple
lines of htaccess code.
assuming apache and rewrite engine is enabled,
and old articles were in a directory (like site.com/press/) and the new
folder is site.com/pressreleases/
RewriteEngine On
RewriteRule ^((/press/).*\.(htm|html)?)$ pressreleases/index.php?id=$1
[R=301, L]
untested, but i think that should do the trick.
More information about the thelist
mailing list