301 Moved Permanently

301 Moved Permanently

Server returns the 301 HTTP status code to indicate that the resource has been given a new permanent location.

You can Check Your URLs HTTP Code for FREE

When the server returns a 301 Moved Permanently status code, it means that the requested resource has been permanently moved to a new location.

This redirection is permanent, and clients should update their bookmarks or links to the new URL. The response is cacheable by default, but if necessary, the server can provide caching instructions to override this behavior.

When you receive a 301 Moved Permanently status code, it means that the requested resource has been permanently moved to a new location. Your web browser or application should automatically update its stored links to use the new URL provided in the response's Location header. This could happen if a website has changed its domain name or reorganized its files.

Note that with a 301 status code, the client can change the HTTP request method (e.g., from POST to GET) when following the redirection, unlike the 308 Permanent Redirect status code, which requires the same request method to be used.

In this example, when the client tries to access a webpage, the server informs that the webpage has been permanently moved to a new address. The server includes the new address in the response's Location header. Although some browsers may briefly display a message advising to update bookmarks, they usually automatically redirect to the new location, making the process seamless for users.

Request

GET /news.html HTTP/1.1
Host: www.example.re

Response

HTTP/1.1 301 Moved Permanently
Location: http//www.example.com/feeds/news.html
Content-Type: text/html; charset=UTF-8
Content-Length: 150

< h1>The Newsfeed has moved

The newsfeed has moved permanently to < a href=/feeds/news.html>here. Please update your bookmarks.

The 301 Moved Permanently status code tells users that the webpage they are trying to access has been moved to a new location permanently. Their browser will automatically redirect them to the new address, ensuring a seamless browsing experience. Users may need to update their bookmarks to the new address for future access.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

561 Unauthorized

530 Site Frozen