Free auditStart free
GuideCloudflare · Redirects

Cloudflare 301 redirects

Set up a Cloudflare 301 redirect with Single Redirects or Bulk Redirects, see the plan limits, and learn where Page Rules stand now.

5 min
read
8
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
In one line

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.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Pick by volume and pattern

Single Redirects or Bulk Redirects

Level

Single Redirects
Zone
Bulk Redirects
Account, can apply across domains

Style

Single Redirects
Static or dynamic; wildcard-based interface
Bulk Redirects
Static; no string replacement or regular expressions

Use for

Single Redirects
Patterns such as a folder move or www to apex
Bulk Redirects
Long lists of old URL to new URL pairs

Needs

Single Redirects
Hostname proxied by Cloudflare
Bulk Redirects
Hostname proxied by Cloudflare

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.

02How it works

Create a 301 with Single Redirects

Cloudflare's own Page Rules migration examples
GoalPatternTargetStatus
www to root (HTTPS requests only)https://www.example.com/*https://example.com/${1}301
Old path to new pathhttps://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.

  1. 01

    Open the rule screen

    In the Cloudflare dashboard, go to the Rules Overview page, then select Create rule > Redirect Rule.

  2. 02

    Match the request

    Choose a wildcard pattern such as http*://*.example.com/files/*, all incoming requests, or a custom filter expression.

  3. 03

    Set the target

    Enter a static URL, or a dynamic one using wildcard replacement such as ${1} and ${2}.

  4. 04

    Choose the status code

    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.

  5. 05

    Decide on the query string

    Use Preserve query string to keep the original query string. Cloudflare says this toggle is disabled by default.

03How it works

Create Bulk Redirects

  1. 1

    Create the list

    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.

  2. 2

    Create the rule

    Select Create Bulk Redirect Rule, name it, pick your list, and optionally edit the expression.

  3. 3

    Deploy

    Select Save and Deploy, or Save as Draft.

  • The source URL of each redirect cannot include a query string.
  • Lists and rules exist only at the account level, so every zone in the account shows the same items.
  • When you update a list, do not remove existing items before adding or updating.
  • In a CSV import, only the source and target URLs are mandatory, and Cloudflare documents 301 as the default status code.
04Explained

Redirect a whole domain to another domain

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::.

06Good to know

Where Page Rules stand

Cloudflare's Page Rules documentation is labeled deprecated. Cloudflare says Single Redirects, Bulk Redirects, and the other newer rules take precedence over Page Rules, so a Page Rule is overridden when both match. Its migration page, last updated April 16, 2026, says Page Rules trigger only on URL patterns and are limited to 125 rules per zone for performance reasons. It also says Cloudflare will migrate existing Page Rules automatically, with no action required and advance notice before any change, and calls this "planned for late 2025 or beyond". As of October 25, 2026, the Page Rules page (updated August 14, 2026) still documents Page Rules at Rules > Page Rules, with default quotas of 3 (Free), 20 (Pro), 50 (Business), and 125 (Enterprise) rules. Cloudflare has not published a completed migration on those pages, so do not assume your account has been migrated.
07How it works

Check it in two minutes

Behind Cloudflare on WordPress? Compare with WordPress redirects; a redirect at the edge runs before your application sees the request.

  1. 01

    Confirm the proxy

    The DNS record for the hostname must show as proxied, otherwise the redirect never runs.

  2. 02

    Request the old URL

    Run curl -sI https://example.com/old-path/page and read the status line and Location header.

  3. 03

    Look for chains and loops

    Follow the Location header. One hop to the final page is the goal. See redirect chains and redirect loops.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How do I set up a 301 redirect in Cloudflare?

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.

02Are Cloudflare Page Rules still supported?

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.

03How many redirects can I create on the Cloudflare Free plan?

Cloudflare lists 10 Single Redirects per zone, and 15 Bulk Redirect rules, 5 lists, and 10,000 URLs per account on the Free plan.

04Does a Cloudflare redirect keep the query string?

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.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • cloudflare.com
  1. 01Redirects overview | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  2. 02Create a Single Redirect in the dashboard | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  3. 03Single Redirects settings | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  4. 04Create Bulk Redirects in the dashboard | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  5. 05Page Rules migration | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  6. 06Page Rules | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
  7. 07Redirect one domain to another | Cloudflare fundamentals docsdevelopers.cloudflare.com · checked 2026-10-25
  8. 08CSV file format for Bulk Redirects | Cloudflare Rules docsdevelopers.cloudflare.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane