I have setup two domains the exact same way. But one of them does not redirect www to non-www.
Settings:
- A record that points to my ip
- Always use https in on
- One page rule: Page forward: www.domain.com/* → 301 → https://domain.com
One domain works, but the other one does not, when typing http://www.domain.com
Any ideas?
domjh
October 2, 2020, 6:37pm
2
Hi @thomas26 ,
Can you share the domain names so we can check it out?
1 Like
Sure,
A record (note: no cname for www)
HTTPS always on
1 Page rule:
www.isitraining.app/*
Forwarding URL (Status Code: 301 - Permanent Redirect, Url: https://isitraining.app )
Basically what happens is when I type http://www.isitraining.app (note no https) in my browser, it gets redirected to https://www.isitraining.app/ - and I receive:
www.isitraining.app’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN
How do I fix this?
domjh
October 3, 2020, 9:43am
4
So,.the issue here is that you don’t have an DNS record for www
(or any DNS record for www
, for that matter). You will need to create one for the page rule to work:
This tutorial is deprecated in favour of Single Redirects — Example rules · Cloudflare Rules docs
Archive <a name="introduction-to-redirecting-with-page-rules-video-2" class="anchor" href="#introduction-to-redirecting-with-page-rules-video-2"></a>Introduction to <a href="https://community.cloudflare.com/t/redirect-example-com-to-www-example-com/78348">redirecting</a> with page rules video
<a href="https://youtu.be/gvPfNfiFESo…
1 Like
system
Closed
October 8, 2020, 9:43am
5
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.