SEO Tip: Safe PHP redirect
Search engines are particularly harsh to sites that use hard redirects to another page. If you are using PHP and need to have a page redirect to another location, use this code:
<?php
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.newdomain.com/newpage/newurl.htm”);
exit();
?>
thanks for posting this. So if you do the redirect at the domain hosting level (e.g. click the 'Moved Permanently' button) will it still preserve your page rank?
- reply
Submitted by Casey Jackman (not verified) on Wed, 04/09/2008 - 07:44.