Auto redirect of all pages
Posted: Tue Aug 09, 2005 10:53 am
I am quite new to PHP, and have heard that there is a way of redirecting all files on my site to another.
For example, no matter whether the visitor tries to access http://www.mysite.com/shop.php or http://www.mysite.com/contact.php, or any other page, they'll always be redirected to http://www.myothersite.com/index.php
I simply want to catch all visitors to my old site, and immediately transfer them to my new one. I've heard it can be done by editing one file, rather than every file on the site. Can anyone please offer specifics?
For example, no matter whether the visitor tries to access http://www.mysite.com/shop.php or http://www.mysite.com/contact.php, or any other page, they'll always be redirected to http://www.myothersite.com/index.php
I simply want to catch all visitors to my old site, and immediately transfer them to my new one. I've heard it can be done by editing one file, rather than every file on the site. Can anyone please offer specifics?