HTTP 301 Moved Permanently
The resource has been permanently moved to a new URL. All future requests should use the new URL.
Moved Permanently
The resource has been permanently moved to a new URL. All future requests should use the new URL.
What Causes HTTP 301?
- Resource was permanently relocated to a new URL
- Website migrated from HTTP to HTTPS
- Domain changed and old URLs redirect to new domain
- URL structure was reorganized permanently
Code Examples
See how HTTP 301 responses look in different programming languages and tools.
curl -I https://example.com/old-page
# Response: 301 Moved Permanently
# Location: https://example.com/new-pageHow to Fix HTTP 301
- Update all links and bookmarks to the new URL
- Use the Location header value for the new URL
- Update sitemaps and internal links to point to the new URL
- Ensure redirect chains are not too long (SEO best practice)
Related Status Codes
Test Your APIs
Frequently Asked Questions
What does HTTP 301 mean?
The resource has been permanently moved to a new URL. All future requests should use the new URL.
What causes HTTP 301?
Resource was permanently relocated to a new URL. Website migrated from HTTP to HTTPS. Domain changed and old URLs redirect to new domain. URL structure was reorganized permanently
How to fix HTTP 301?
Update all links and bookmarks to the new URL. Use the Location header value for the new URL. Update sitemaps and internal links to point to the new URL. Ensure redirect chains are not too long (SEO best practice)