I need to permanently redirect a page to a new url, and instead of doing it in the .htaccess file I thought it might be better to do it in php. I'm not sure if I did it right though?
Code:
<?php
Header( "HTTP/1.1 301 Moved Permanently" );
header( 'Location: http://www.website.com/newurl' ) ;
?>
|