301 Moved Permanently
What is a 301 Moved Permanently HTTP response?
A 301 Moved Permanently response is used for the permanent redirection of a resource.
For example, a resource that was previously at
www.example.com/page.html has permanently moved to
If the move may only be for a shorter period of time and is likely to be changed or reversed, then alternatively a 302 Found status would usually be preferable.
What type of HTTP status is a 301?
A 301 is in the 3xx class of status codes which are redirection based.
Other status codes in the 3xx class include 300, 302, 303, 304, 305, 306, 307, and 308.
Example 301 Response Header
HTTP/1.1 301 Moved Permanently Location: https://www.destinationwebsite.com
<!DOCTYPE html> <html> <head> <title>301 Moved Permanently</title></head> <body> <h1>301</h1> <h2>Moved Permanently</h2> <p>The document has been permanently moved.</p> </body></html>
Content last checked for accuracy and updated: 12th July 2020, by Colin McDermott