Home  >  Article  >  What does HTTP status code 301 mean?

What does HTTP status code 301 mean?

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌Original
2023-12-04 11:19:552412browse

HTTP status code 301 indicates a permanent redirection "Moved Permanently". When the server returns the 301 status code, it tells the client that the requested resource has been permanently moved to another location. The client receives a 301 response After that, subsequent requests should be initiated using the new URL.

What does HTTP status code 301 mean?

# Operating system for this tutorial: Windows 10 system, Dell G3 computer.

HTTP status code 301 indicates permanent redirection (Moved Permanently). When the server returns a 301 status code, it tells the client that the requested resource has been permanently moved to another location. After receiving the 301 response, the client should use the new URL to initiate subsequent requests.

A common situation is that when a website changes its domain name or modifies the URL structure, the server will return a 301 status code to inform the client that it should access the new URL in the future. After receiving the 301 response, the browser will automatically redirect to the new URL address, and the search engine will also update the index and transfer the weight of the old URL to the new URL.

It should be noted that the 301 status code represents a permanent redirect, so the client should cache the new URL after receiving the 301 response, and future requests will directly use the new URL instead of accessing the old one. URL.

The above is the detailed content of What does HTTP status code 301 mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn