PHP Redirect
When a server can not use the .htaccess file or using it is not preferred, a redirect can be written with PHP.
After the page has been moved to a new location, create a new page at the old location. The new page contains these lines.
<?php header('Location: http://example.com/newpage.php',false,301); exit; ?>
Change the http://example.com/newpage.php URL to reflect the URL the original page was moved to.
The above redirects browsers and spiders with a 301 Moved Permanently status.
If the web page with the PHP redirect code is not a .php web page, see Enabling PHP On Non-.php Web Pages.
Will Bontrager