~/devtools / http-status / 301
tool::http-status-detail

301 Moved Permanently

The resource has permanently moved to a new URL.

ad · 728×90
Status Code
301
Name
Moved Permanently
Category
3xx

Detailed Explanation

HTTP 301 Moved Permanently indicates that the requested resource has been permanently moved to a new URL. When search engines receive this response, they transfer link juice (PageRank) to the new URL and update their index. Browsers will automatically use the new URL for subsequent identical requests. This code is essential in SEO when changing domains or restructuring URLs.

Common Causes
  • The website domain was changed (e.g., example.com → newdomain.com)
  • The URL structure was redesigned (e.g., /page?id=1 → /page/1)
  • Migration from HTTP to HTTPS
  • Consolidating www and non-www versions
How to Fix
  • 1.Verify that the Location header contains the correct new URL
  • 2.Avoid redirect chains (301→301→301) and link directly to the final destination
  • 3.Use 302 or 307 instead of 301 if the move is temporary
  • 4.Check redirect rules in your server configuration (.htaccess, nginx.conf)

Related HTTP Headers

LocationCache-Control

Response Example

HTTP/1.1 301 Moved Permanently
Location: https://newdomain.com/page
Cache-Control: public, max-age=31536000

Related Status Codes

300Multiple ChoicesMultiple options for the requested resource.302FoundThe resource is temporarily at a different URL.303See OtherRedirect to another resource using GET.304Not ModifiedThe cached version is still valid; no new content to return.307Temporary RedirectTemporary redirect preserving the original HTTP method.
ad · 300×250
Back to all status codes
// related tools
Cron Expression Generator
Build and parse cron expressions visually. Generate human-readable descriptions and preview next execution times.
jwt
JWT Decoder
Decode and inspect JWT tokens. View header, payload, and signature details.
rx
Regex Tester
Test regular expressions with live matching, group highlighting, and explanations.
Color Converter
Convert colors between HEX, RGB, HSL, and more. Pick colors visually.