Managing web traffic redirection can be tricky, especially when dealing with exceptions. Recently, I needed to redirect all traffic from my old domain, floatingpint.com, to my new site, webtechsupport.co.uk, while keeping a specific path (/seo-tool) pointing to another subdomain. Here’s how I achieved it using Cloudflare.
Cloudflare is a powerful tool for DNS and traffic management. Its Page Rules feature makes it easy to set up conditional redirects without requiring server-level configuration. This guide will show how you can:
Confirm your existing DNS records:
Page Rules in Cloudflare allow you to manage conditional traffic redirection.
Click Create Page Rule and set:
Save the rule.
The $1 ensures that any path after the domain is appended to the new site.
Drag this rule below the /seo-tool rule so it’s applied only after the specific match.
Visit any other path (e.g., floatingpint.com/about) → Redirects to https://webtechsupport.co.uk/about.
Use tools like Redirect Checker to confirm the rules are working correctly.
Cloudflare’s Page Rules prioritize specific rules over catch-all ones. By ordering the /seo-tool rule before the global redirect, you ensure exceptions are handled correctly. The flexibility of DNS and redirection settings in Cloudflare makes it an ideal solution for similar use cases.
Redirecting traffic might seem daunting at first, but with tools like Cloudflare, it becomes manageable. This method allows you to retain control over specific paths while efficiently forwarding users to your new site.
If you’re facing similar challenges or have questions, feel free to reach out or leave a comment below!