HTTP 301
From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search
| HTTP | |||
| Persistence · Compression · HTTP Secure | |||
| Headers | |||
| ETag · Cookie · Referrer · Location | |||
| Status codes | |||
| 301 Moved permanently | |||
| 302 Found | |||
| 303 See Other | |||
| 403 Forbidden | |||
| 404 Not Found | |||
{{Expansion depth limit exceeded}} =
{{Expansion depth limit exceeded| {{Expansion depth limit exceeded}}
|
Template:{{{Expansion depth limit exceeded}}} | {{Expansion depth limit exceeded}}
}}}}|action=edit}}edit] |
The HTTP response status code 301 Moved Permanently is used for permanent redirection.
This status code should be used with the location header. RFC 2616 states that:
- If a client has link-editing capabilities, it should update all references to the Request URI.
- The response is cachable.
- Unless the request method was HEAD, the entity should contain a small hypertext note with a hyperlink to the new URI(s).
- If the 301 status code is received in response to a request of any type other than GET or HEAD, the client must ask the user before redirecting.
Example
Client request:
GET /index.php HTTP/1.1 Host: www.example.org
Server response:
HTTP/1.1 301 Moved Permanently Location: http://www.example.org/login.php
See also
| Stub icon | This World Wide Web-related article is a stub. You can help Wikipedia by expanding it. |
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...
→