I am using a domain registered on Cloudflare for my substack. Since substack necessitates the use of a subdomain www is pointed to substack. I wanted to redirect domain to www.
I added page rules. Now, [Preformatted text](http://learningbyproxy.com) seems to redirect properly but [Preformatted text]https://learningbyproxy.com provides me with an error. What am I doing wrong? I am aware that I have no A record and the traffic is not proxied through Cloudflare, is there any resolution to this?
With no A, AAAA or CNAME record(s) for the specific (sub-)domain, browsers won’t have anywhere to send the traffic to.
The IPv6 (AAAA) 100:: can be used as a dummy address, when you have no servers to steer the traffic to, and solely rely on e.g. Cloudflare features, such as the redirects in this case.
Together with being Proxied (), traffic will then be sent to Cloudflare’s edge.
Without a Proxied () record, Cloudflare will never see the traffic for the given (sub-)domain.
Create the AAAA record as mentioned above.
For the HTTP ↔ HTTPS redirect, I would personally enable “Always Use HTTPS” here:
It seems to work ok for me. If you have just changed the redirect, it may be a previous 301 is cached in your browser. Try clearing the browser cache or incognito/private mode.