This tutorial will explain how you can forward a web page to other URL using PHP forwarding.
It will be useful when you do not want to use other way of forwarding, like .htaccess permanent redirect, META redirect, Java redirect, etc.
This type of forwarding can be used only on a server with running PHP on it.


posted on 2009-May-28 | 05:20:22 AM
posted on 2009-May-28 | 05:23:37 AM
<?php
header( "HTTP/1.1 301 Moved Permanently");
header("Status: 301 Moved Permanently");
header( "Location: http://www.domain.tld/");
exit(0);
?>
But better use .htaccess or any redirect on server level as it is better for the SE