PHP: 301 Moved Permanently

If you want to move your old page address some.old.page­/address.php to new location new-location/of-page.php you have to add these 3 lines of PHP code into the old address.php file and move your content to new location address.

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://new-location/of-page.php");
header("Connection: close"); // M$ IE fix
?>

If you use IIS server and ASP language, you can use this tip for ASP redirection.