Is it possible that Cloudflare (CF) could be caching a domain that might have been set up previously by a different third party?
We’re hosting a WordPress (WP) site that wasn’t developed by us. We want to use CF proxies but when ever this is enabled the browser redirects to 3dcartstores.com which isn’t anything to do with the site. I thought at first that it may be a WP plugin and/or theme that is redirecting, but I’ve done a text search through all files and nothing is returned. I thought it may also be from the database and after a full text scan it’s found nothing either. So I tested by uploading a text file to the server to bypass WP altogether.
If I access the URL without www i.e. example.com/test.php it redirects to 3dcartstores.com, if I access it with www i.e. www.example.com/test.php I’m able to see the contents of the text file.
So I know it’s not the WP installation. I can only think that the domain was added by a third party previously and CF is caching the redirect or rule that might have been set up previously. I can’t contact CF because I only have a free account but this is their issue. Any ideas???
Yes the site worked absolutely fine via HTTPS. As soon as I switch on CF Proxy it redirects to an unknown domain, if I switch off the proxy it works fine again. These are the Response Headers I’m getting from CF without www
Thanks @sandro, I think that’s most likely the issue. I’ve tried adding DNS CNAME records as the tool suggests to regain ownership but it says the record already exists. I think somehow that the DNS setup for this domain still exists in someone elses CF account. The interesting thing is that we have been managing this domain for some months now, we control the DNS and the old CF records should have well expired by now.
I’m now reverting the DNS back to our original DNS server and I should then be able to setup the CNAME records.
There aren’t really any entries to expire, the issue is your naked domain is still managed by the Cloudflare settings of that other provider. And mentioned service would allow you to take back control.
You will first have to drop the entry for the naked domain before you can configure a new CNAME entry.