Apr 13, 2006
The preferred way of redirecting a page that has moved is by a 301 redirect. In PHP, 301 redirects are not the default (a 302 redirect is the default). Whenever you move a visitor to a new location, you should use the PHP 301 redirect, which involves one extra line of code.In PHP, a 302 redirect is done as follows...
By doing a 302 redirect, this will move the visitor from the old page to the new page, but any link or PR value will not follow the redirection. Usually, when you are moving a page, you want the old page to disappear and all links to point to the new page.
5 Comments
Is it SEO ?
Working fine.
jack - Mar 23, 2007
in the event of redirect www.old-domain.com to www.new-domain.com with the php 301 redirect is it needed in that php file to note in there permanantly moved or does the search engine not even see anything in that file?
newbie question
should I add
Header( "HTTP/1.1 301 Moved Permanently" ) ;
before
Header( "Location: http://www.domain.com" );
?
Be aware....301 header redirects are now see as backlinks in google !!



















Is it spam when we are using meta redirect.