Unable to redirect website URL

What is the name of the domain?

qroutes.com

What is the issue you’re encountering

Unable to redirect website URL

What steps have you taken to resolve the issue?

I’ve added my alias domain into Cloudflare and am redirecting URL traffic to a site not managed in Cloudflare. I’ve added in Redirect Rules, where I’ve got 2 rules successfully working to redirect to the subdomain of the Cloudflare domain to the subdomain on the non-Cloudflare domain, but I can’t get this working for the root or www subdomains. I’ve also tried with CNAMEs. I just get a “Can’t find this page” without a specific error code. I don’t have an A record in place for the root or the www either.

That’s why the redirects don’t work. They need to resolve to Cloudflare. Use a proxied record for each of AAAA 100:: if you are just redirecting.

2 Likes

Hi, thanks for responding. I’ve set an A record (I assume using AAAA isn’t going to act differently with IPv6) as ensured the proxy was set on. Pointed it to my web server’s IP, though I assume this shouldn’t matter as the redirect should override that. However, it’s just hitting the web server host’s landing page rather than using the redirect.

Ok I’ve got a little further, adding the A record has fixed it for the root domain and that is now redirecting. I can’t seem to get the www. sending there however, even with an A record added for it, and using either a wildcard or dedicated redirect rule for it.

What IP address have you used? If it is a Cloudflare one because your host uses Cloudflare, it won’t do the redirect.

Otherwise can you show a screenshot of the DNS records and your rule?

[add]
www seems to redirect for me so make sure you’ve cleared your browser cache or use incognito or private mode to ensure you are getting the latest response.
https://cf.sjr.org.uk/tools/check?6521ac6e862f4f82a4cbf52489c721bb#connection-server-https

Ah, I’d just posted the image with settings and it started working! Strange, as I’d tested with fresh in-private browser sessions too but the www had been delayed amongst the setting changes I’ve been making. Possibly the cache on CF needed to update and I’d not manually cleared that. Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.