
Cloudflare URL redirects are a powerful tool for website forwarding, allowing you to forward visitors from one URL to another. This can be especially useful for migrating to a new domain or for creating a single entry point for multiple websites.
To use Cloudflare URL redirects, you'll need to log in to your Cloudflare account and navigate to the "Redirects" tab. From there, you can create a new redirect rule by specifying the source URL and the destination URL.
The source URL is the URL that you want to forward visitors from, while the destination URL is the URL that you want to forward visitors to. You can also specify a permanent or temporary redirect, depending on your needs.
Take a look at this: Shopify Url Redirects
Setting Up Redirects
To configure URL forwarding or redirects using Page Rules, log in to your Cloudflare account, select your account and domain, and go to Rules > Page Rules.
First, create a new Page Rule by selecting Create Page Rule. Then, under If the URL matches, enter the URL or URL pattern that should match the rule.
When choosing a setting, pick Forwarding URL from the drop-down menu. You can choose between 301 - Permanent Redirect or 302 - Temporary Redirect.
Next, enter the destination URL where you want the redirect to point to. Make sure to select Save and Deploy Page Rule to activate the redirect.
If you have multiple URL redirects that can apply, Cloudflare will determine the winning redirect based on the following rules:
• Given two URL redirects with Subpath matching enabled, the URL redirect with the most specific path wins over the other URL redirect.
• URL redirects with the exact hostname win over URL redirects with the Include subdomains option enabled.
• Given two URL redirects with Include subdomains enabled, the URL with the most specific domain wins over the other URL redirect.
• URL redirects with a concrete scheme win over URL redirects that match both http and https schemes.
Here's a summary of the redirect rules:
Remember, you can set up up to 50 bulk redirect rules on the Enterprise plan, with a quota of 1,000,000 URL redirects across lists.
Understanding Redirect Options
If multiple URL redirects can apply, the one that wins is determined by specific rules. The URL redirect with the most specific path wins over the other URL redirect.
URL redirects with the exact hostname win over URL redirects with the Include subdomains option enabled. This means that a redirect with a specific hostname will take priority over one that includes subdomains.
Given two URL redirects with Include subdomains enabled, the URL with the most specific domain wins over the other URL redirect. For example, a redirect with foo.bar.com will win over one with bar.com.
URL redirects with a concrete scheme win over URL redirects that match both http and https schemes. This means that a redirect with a specific scheme (like http) will take priority over one that matches both http and https.
Here are the rules in a concise table:
Configuring Redirects
Configuring Redirects is a crucial step in setting up your Cloudflare URL redirect. You can configure URL redirects using Page Rules, which allow you to forward or redirect URLs.
Worth a look: Webflow 301 Redirects
To configure URL forwarding or redirects using Page Rules, log in to your Cloudflare account and select your account and domain. Then, go to Rules > Page Rules and select Create Page Rule.
The URL pattern you enter will determine which URLs are redirected. For example, if you enter *www.example.com/products, it will match, but not *example.com/products.
The status code you choose will determine the type of redirect. Choose 301 - Permanent Redirect or 302 - Temporary Redirect. You can also use variables in your URL pattern to capture specific parts of the URL and forward them to the new URL.
Here are the default quotas for URL redirects across lists for different Cloudflare plans:
If you need more redirects, contact your account team. Bulk Redirects features and quotas are per account and depend on the highest Cloudflare plan on your account.
The order of URL redirects can be determined by the following rules:
1. URL redirects with the most specific path win over other URL redirects.
2. URL redirects with the exact hostname win over URL redirects with the Include subdomains option enabled.
3. URL redirects with the most specific domain win over other URL redirects with Include subdomains enabled.
4. URL redirects with a concrete scheme win over URL redirects that match both http and https schemes.
By following these rules, you can ensure that your URL redirects are applied correctly and efficiently.
Redirect Features
You can configure URL forwarding or redirects using Page Rules in Cloudflare. To do this, log in to your Cloudflare account, select your account and domain, and go to Rules > Page Rules.
The Page Rules feature allows you to set up URL forwarding or redirects in a variety of ways, including using wildcard patterns to match URLs.
For example, you can set up a rule to forward requests from *www.example.com/products to a specific URL.
If you want to forward multiple URLs at once, you can use Bulk Redirects, which is available in all Cloudflare plans, including the Free plan.
Additional reading: Does Gooogle Look at Vanity Urls
Bulk Redirects features and quotas depend on the highest Cloudflare plan on your account, with the Enterprise plan offering the most redirects, up to 1,000,000 URL redirects across lists.
You can also use variables in your URL patterns to create more advanced redirects, such as forwarding the apex domain to www.example.com while preserving any other URL parameters.
To do this, you can use the $ (dollar sign) followed by a number to refer to each wildcard in the URL pattern.
For example, you could set up a rule to forward requests from example.com/* to www.example.com/*, preserving any URL parameters.
Cloudflare also offers advanced forwarding options, including the ability to forward URLs with specific status codes, such as 301 - Permanent Redirect or 302 - Temporary Redirect.
You can set up these options by selecting the status code you want to use in the Page Rules feature.
Here are the available status codes for URL forwarding:
By using these features and options, you can create complex URL redirects that meet the needs of your website.
Availability and Behavior
Cloudflare URL redirects are available on all plans, offering a range of tools to help you manage your redirects effectively.
Single Redirects and Bulk Redirects are available on all Cloudflare plans, but the exact quotas and features depend on your plan. You can use these features to redirect your URLs with ease.
Cloudflare Radar, Speed Test, and other tools are available to help you monitor and optimize your redirects.
Execution Order
The execution order of rules features is crucial to understand, as it determines which rules take precedence over others. This order is as follows:
- Single Redirects
- URL Rewrite Rules
- Configuration Rules
- Origin Rules
- Bulk Redirects
- Managed Transforms
- Request Header Transform Rules
- Cache Rules
- Snippets
- Cloud Connector
Page Rules will be overridden if there is a match for both Page Rules and the Rules products listed above. For terminating actions, rule evaluation will stop and the action will be executed immediately. If multiple rules with the Redirect action match, Cloudflare will always use the URL redirect of the first rule that matches.
Availability
Availability is a crucial aspect of any service, and Cloudflare is no exception. Single Redirects and Bulk Redirects are available on all Cloudflare plans.

The exact quotas and features depend on your plan, so it's essential to review your options carefully. I've found that having a clear understanding of what's included in your plan can save a lot of time and frustration in the long run.
Tools such as Cloudflare Radar, Speed Test, Is BGP Safe Yet?, RPKI Toolkit, and Certificate Transparency are all available to help you get the most out of your Cloudflare experience.
Here are some of the tools you can expect to find:
- Cloudflare Radar
- Speed Test
- Is BGP Safe Yet?
- RPKI Toolkit
- Certificate Transparency
Configure Page Rules for URL Forwarding
To configure Page Rules for URL forwarding, log in to your Cloudflare account and select your account and domain. Go to Rules > Page Rules and under Page Rules, select Create Page Rule. Enter the URL or URL pattern that should match the rule in the If the URL matches field.
You can use the following parameters to configure how Cloudflare determines the path and query string of the final target URL: Preserve query string (default: false) and Preserve path suffix (default: true).
To set up a 301 redirect using Page Rules, navigate to the Rules area on the sidebar, then click Page Rules and click the Create Page Rule button. Enter the URL pattern you want to 301, click the dropdown and choose URL Forwarding, select your Status Code from the dropdown (probably 301), and enter the destination.
Here are the steps to follow:
- Enter the URL pattern you want to match
- Click the dropdown and choose URL Forwarding
- Select your Status Code (probably 301)
- Enter the destination URL
- Click Save and Deploy Page Rule
The URL matching algorithm checks for the following:
- The scheme (http or https) is the same as the source URL of the URL redirect definition
- The hostname is the same as the hostname in the source URL of the URL redirect definition
- The path is the same as the source URL
You can use the asterisk (*) wildcard to match any URL, and the dollar sign ($) to refer to variables in the forwarding address. For example, if you want to forward the apex domain (example.com) to www.example.com, you can use the pattern: and set up the following URL for traffic to forward to:.
Broaden your view: Challenges Cloudflare Com
Featured Images: pexels.com


