Level
- Single Redirects
- Zone
- Bulk Redirects
- Account, can apply across domains
Set up a Cloudflare 301 redirect with Single Redirects or Bulk Redirects, see the plan limits, and learn where Page Rules stand now.
Create a Cloudflare 301 redirect with Single Redirects: in the dashboard, open Rules Overview, then Create rule > Redirect Rule, and choose status code 301. Use Bulk Redirects for large lists. Both need DNS records proxied through Cloudflare. Cloudflare's newer rules take precedence over Page Rules.
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.
Cloudflare runs Single Redirects before Bulk Redirects, and says it always uses the redirect of the first matching rule. If you migrate a site, use one wildcard Single Redirect for a whole folder, and keep Bulk Redirects for the one-off exceptions.
| Goal | Pattern | Target | Status |
|---|---|---|---|
| www to root (HTTPS requests only) | https://www.example.com/* | https://example.com/${1} | 301 |
| Old path to new path | https://example.com/old-path/* | https://example.com/new-path/${1} | 301 |
Cloudflare notes the www example is not an exact match for the old Page Rule, which also matched HTTP requests. To match both, use http*://www.example.com/* with the target https://example.com/${2}. Also, 301 is the default status code in the Single Redirects settings, and for POST requests the browser might switch the method to GET; pick 308 if the method must be preserved. For 301 against 302 and when each fits, see 301 redirect and 302 redirect.
In the Cloudflare dashboard, go to the Rules Overview page, then select Create rule > Redirect Rule.
Choose a wildcard pattern such as http*://*.example.com/files/*, all incoming requests, or a custom filter expression.
Enter a static URL, or a dynamic one using wildcard replacement such as ${1} and ${2}.
Select 301 for a permanent move. The options are 301, 302, 307, and 308; Cloudflare labels 307 and 308 as Advanced and says they preserve the HTTP method.
Use Preserve query string to keep the original query string. Cloudflare says this toggle is disabled by default.
On the Bulk redirects page, under Bulk Redirect Lists, select Create Bulk Redirect List. Name it, then import a CSV or add redirects by hand. Each entry needs a Source URL, a Target URL, and a Status.
Select Create Bulk Redirect Rule, name it, pick your list, and optionally edit the expression.
Select Save and Deploy, or Save as Draft.
For an alias domain that only forwards traffic and has no origin server, Cloudflare's guide says to add the domain to Cloudflare, give it proxied A records (@ and www) pointing to 192.0.2.1, which routes no traffic to an origin but lets Cloudflare apply redirects, then add a redirect rule. Use a dynamic redirect with the expression concat("https://globalstore.example.net", http.request.uri.path), status code 301, and Preserve query string enabled. The IPv6 equivalent for an AAAA record is 100::.
| Plan | Rules | Lists | Max URLs |
|---|---|---|---|
| Free | 15 | 5 | 10,000 |
| Pro | 15 | 5 | 25,000 |
| Business | 15 | 5 | 50,000 |
| Enterprise | 50 | 25 | 1,000,000 |
Behind Cloudflare on WordPress? Compare with WordPress redirects; a redirect at the edge runs before your application sees the request.
The DNS record for the hostname must show as proxied, otherwise the redirect never runs.
Run curl -sI https://example.com/old-path/page and read the status line and Location header.
Follow the Location header. One hop to the final page is the goal. See redirect chains and redirect loops.
4 questions people ask next, answered from the sources on this page.
Go to the Rules Overview page, select Create rule > Redirect Rule, define the match, enter the target URL, choose status code 301, and deploy. The hostname must be proxied by Cloudflare.
Cloudflare's documentation labels Page Rules deprecated and says newer rules such as Single Redirects take precedence over them. Cloudflare says it will migrate existing Page Rules automatically, but its migration page still describes that as planned, and the Page Rules page still documents them.
Cloudflare lists 10 Single Redirects per zone, and 15 Bulk Redirect rules, 5 lists, and 10,000 URLs per account on the Free plan.
Only if you enable Preserve query string, which is disabled by default for Single Redirects. A Bulk Redirect source URL cannot include a query string.
Run the free audit, then approve the fixes. Every change can be undone.