In the HTTP protocol used by the WWW, a redirect is a response with a status code beginning with 3 that induces a browser to go to another location, with annotation describing the reason, which allows for the correct subsequent action.

Here is the example how to do it in PHP:

header("HTTP/1.1 301 Moved Permanently");
header( 'Location:' ) ;

Answers and Comments