Written by: TechNut
PHP 301 REDIRECTS are easier than you think and according to Google and other search engines 301 redirects are safe ways to redirect pages that have moved as well as an entire website if needed. Here is the quick way to implement a 301 PHP Redirect safely in your website. For those who are not too familiar with PHP it’s best to remove all HTML in the php file you create.
<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>
