Forum Moderators: coopster
If a person visits [oldurl.com...]
or page2.php or page3.php, etc etc
I want it to go to [newurl.com...]
or page2.php or page3.php, etc etc
I want it to dynamically parse the page trying to be accessed into the new URL.
As it stands, all I could do was set up a custom 404 page that redirects to [newurl.com...]
Any suggestions? :)
If I had to write some kind of array listing every URL to replace, I wouldn't mind. There aren't that many pages, but I didn't think that sounded very efficient. I'm mostly just doing this to try and learn.
Well, you certainly could script this in PHP but I'm thinking you may want to do this at the server level using Apache redirection [httpd.apache.org].