The resource has moved permanently to the URL in the Location header.
301 Moved Permanently tells clients and search engines that the target URI has a new permanent address. Search engines transfer ranking signals to the new URL. Browsers cache 301s heuristically and often for a long time, so a mistaken 301 can stick in users' browsers. For historical reasons clients may change a POST into a GET when following a 301; use 308 when the method must be kept.
return 301 https://$host$request_uri;, Apache Redirect permanent, Cloudflare "Always Use HTTPS"./dir to /dir/ for directories.curl -sIL https://example.com, or use the redirect checker linked on this page.| Header | Role |
|---|---|
Location | The new permanent URL. |
Cache-Control | Limit how long the redirect is cached, e.g. max-age=3600. |
HTTP/1.1 301 Moved Permanently
Location: https://www.example.com/new-path
Content-Length: 0
Cache-Control: max-age=86400
Checking a whole domain's redirects? The HTTP status checker follows http, https, www and non-www variants and shows every hop.