HTTP Status Code 301
A HTTP status code 301, also known as "Moved Permanently," is a response code used on the web to indicate that a web page has been permanently moved to a new location. When you try to visit a URL that has a 301 redirect, your browser will automatically be directed to the new address.
Here are some key things to know about 301 redirects:
- Permanence: They signify a lasting change. Unlike temporary redirects (status code 302), 301 redirects are meant to be in place for a long time, if not forever.
- SEO: Search engines use 301 redirects to update their indexes, ensuring that users find the most relevant content. This is important for maintaining a website's search ranking when a URL changes.
- Examples: Common reasons for using a 301 redirect include a website changing its domain name, restructuring its URLs, or merging with another website.