JavaScript Editor Ajax software     Free javascripts 



Main Page

Table 4-1
301
The 301 status code indicates that a resource has been permanently moved to the new location specified
by the
Location:
header that follows. It indicates that the old URL is obsolete and should replace any
references to the old URL with the indicated URL.
Take as an example a fictional page named
http://www.example.com/old_page.php
, which returns
this header:
HTTP/1.1 301 Moved Permanently
Date: Wed, 14 Jun 2006 09:50:39 GMT
Server: Apache/2.0.54 (Unix)
X-Powered-By: PHP/5.0.4
Location: http://www.example.com/new_page.php
Content-Length: 0
Connection: close
Content-Type: text/html; charset=utf-8
When loading the page in a web browser, the response will be automatically redirected to the new loca-
tion specified by the
Location
header. After the redirection, the back button in your browser won’t ref-
erence the initially requested page, as a result of the old page being
permanently
redirected.
The 301 status code also indicates to search engines that link equity from the previous URL should be
credited to the new one. In theory, the new page will inherit the rankings of the original page. In prac-
tice, however, it may take some time for this to occur. It would be wise not to frivolously change URLs
regardless, if this is a concern.
Status Code
Description
300
Multiple choices
301
Moved permanently
302
Found
303
See other
304
Not modified
305
Use Proxy
307
Temporary Redirect
81
Chapter 4: Content Relocation and HTTP Status Codes
c04.qxd:c04 10:40 81


JavaScript Editor Ajax software     Free javascripts