Cloudflare loading index.html from the wrong domain


#1

Hi all,

A few days ago I added a domain (call it domainA.com) to Cloudflare, and it works great. I subsequently added a second domain (call it domainB.com) to Cloudflare, but it’s not working properly. Rather than showing the domainB.com content, it seems to be redirecting to domainA.com

Both sites use an index.html file with query strings to load content from the server. To be clear, however, I’m talking about two different index.html files, each of which uses completely different query string syntax.

When I go to any domainB.com address, what I see is the index.html from domainA.com! I have verified this by setting a breakpoint in the .ready() code of domainA.com’s index.html. Sure enough, that breakpoint fires when I surf to domainB.com.

Any help or pointers would be very much appreciated.

Paul


#2

I suggest you open a Support ticket. They can take a look at your settings and see how it’s pulling data from your server. They’re both hosted on the same server, correct?

For now I’d :grey: one or both domains in your Cloudflare DNS tab and see what happens.


#3

I’ll do that. Many thanks for your reply!


#4

thanks