CDN or edge rule
- Where to look
- Redirect or page rules in the CDN dashboard
- Typical cause
- HTTPS or www to non-www rule
HTTP 301 means a URL has moved for good. See what the status does to browsers and Google, how to set it in nginx and Apache, and how to fix a bad 301.
HTTP 301 Moved Permanently means the requested URL now has a new permanent address, given in the Location header. Browsers follow it automatically. Google treats it as a strong signal that the target is the page to process. The origin server or a CDN rule sends it on purpose, so a 301 you did not expect is a rule to find, not a fault.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Location header with the new address, and the client MAY follow it automatically. A 301 is also heuristically cacheable, so browsers and proxies can reuse it without asking again.GET /old-page HTTP/1.1
Host: example.com
HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-pageLocation header and you land on the new page. A 301 you can see is a sign something stopped following it.-L flag) or request the Location URL directly.Redirect permanent "/old-page" "https://example.com/new-page"nginx's return directive accepts a redirect URL for codes 301, 302, 303, 307 and 308. In Apache, Redirect permanent returns 301, and the Apache docs say POST bodies are discarded. If the redirected URL receives form posts or API calls, use 308 so the method survives.
location = /old-page {
return 301 https://example.com/new-page;
}return 301 in nginx, Redirect in Apache config or .htaccessRun curl -sI https://example.com/old-page and read the Location header, then repeat on the target until you get a 200. Each extra hop is a redirect chain; a URL that returns to itself is a redirect loop.
RFC 9110 says that for historical reasons a client MAY change a POST to GET on a 301, and that 308 can be used if that behavior is undesired. MDN adds that the Fetch Standard changes POST to GET after a 301.
Google says its indexing pipeline uses a permanent redirect as a signal that the redirect target should be canonical, and its crawler guide calls a 301 a strong signal that the target should be processed. Googlebot follows up to 10 hops by default. Use a 301 only when you are sure the redirect will not be reverted, and keep chains short. For the audit view, see temporary redirects, redirect chains and the 301 redirect glossary entry, plus Google's redirects documentation.
4 questions people ask next, answered from the sources on this page.
It means Moved Permanently. The requested resource has a new permanent URI, sent in the Location header, and future references ought to use it.
Both are permanent. With a 301 a client may change POST to GET on the redirected request; a 308 does not allow the method to change, per RFC 7538 and MDN. See 308.
Google says a permanent redirect is a signal that the target should be canonical. It does not publish a ranking percentage, so avoid promising one.
Delete or change the rule in the layer that sends it, then clear caches. A browser that stored the redirect may keep using it until its cache is cleared.
Run the free audit, then approve the fixes. Every change can be undone.