Any suggestions, I have about 300 pages which need to be setup with a 301 redirect to my new domain. Can anyone shed light on how to do this programatically, I really hope it does not have to be done individually!!!
I am running an Apache server on CentOS 5.4
old page –>
http://example.com/examplePage.php?id=289
new page –>
http://gallery.example.com/en-US/theme/6
This issue is that the old domain is not related to the new in anyway. 2 separate databases with complete different ID values. It is a complete overhaul of the site in which the id values were not keep in sync. I think this is where my problem becomes a manual entry for each individual redirect I need to keep the SEO values intact.
If anyone could suggest how to do it programatically in PHP that would be great, otherwise I fear I will have hundreds of entries in my .htaccess file.
Try using url rewrites to redirect all pages to the same 301 page. Url rewrites works differently on each server. For Apache you have mod_rewrite.