PHP 301 Redirects

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.
Digg StumbleUpon technorati blinklist furl reddit sphinn

Tags: 301301 redirect302302 redirectphpredirectredirectionurl301 "301 redirect" 302 "302 redirect" php redirect redirection url