ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
3 replies
Otis

Redirect Rule to DNS-Only CNAME subdomain

Hello, I'm trying to use Cloudflare to perform a redirect from my apex domain (example.com) to a subdomain (sub.example.com). The "sub" subdomain itself is a CNAME record (DNS-Only) that points to another host.

However, when I setup my Redirect Rule to 301 redirect to www.example.com, I noticed that Cloudflare continues to proxy everything to www.example.com. (same IP over port 89) How do I prevent that? I just want Cloudflare to handle the initial redirect, then let the server at CNAME take over. Which I thought would be the case by having the CNAME set to "DNS-Only".

Thanks!
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cloudflare DNS with CNAME subdomain question
Cloudflare DevelopersCDCloudflare Developers / general-help
9mo ago
Redirect rule for Cloudflare DNS
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Excluding one subdomain from redirect rule
Cloudflare DevelopersCDCloudflare Developers / general-help
5mo ago
Subdomain (CNAME / Certificate)
Cloudflare DevelopersCDCloudflare Developers / general-help
11mo ago