Page Rule Not Working Root to Subdomain


Hey all, new to the platform and was looking for assistance!

I have a page rule from the root to the test subdomain not working as expected. The domain used is a free domain, as my goal was to do a quick test.

I have the following:*

Forwarding URL - 301 Redirect$1

I have an A record in place that is proxied through the Cloudflare (orange cloud). I confirmed this because reports an entirely different IP for that A record. No other page rules are in place. returns returns

No DNS records exist for the www subdomain.

Am I missing something? Thanks in advance!


Your rule isn’t matching the URI scheme. It needs http:// in front for a full match.

If your site responds to www and non-www, it gets a bit trickier. You’d need two rules (one for each form), or for .htaccess to rewrite www to non-www, or vice-versa. Sites should stick with one or the other.


Thank you for the insight! Updating the origin URL to* generates the 301 redirects as expected.

I added a second rule specifically for to, but it only works if I explicitly type “http://” before If I type in my browser, I still get Is there not a way to redirect all HTTP requests to a specific subdomain in one rule, much like GoDaddy’s forward functionality?

I understand if I had an htaccess file in place that would complicate the situation, but right now the A record for points nowhere (its just to enable the proxy) and there are no DNS records for No server exists for

Any additional suggestions would be much appreciated!


From my browser, as well as curl in verbose mode, I get a 301 to the test domain when I type in

See if clearing your browser cache will fix it.


A post was merged into an existing topic: Want to redirect* to* for mobile device with cloudflare