Using domain.com (no www) with DNS of Hosting Partner


#1

How can I get my domain to work as “domain. com” with CloudFlare when activated via a Hosting Partner? Right now I only get CF headers when accessing over www. And if I set the domain as domain.com (and www redirects to domain. com) I see no CF headers. Is this possible when using a host’s nameservers?


#2

So…not possible I guess.


#3

Going through Hosting Partners can prevent use of the naked domain. Since “www” works, you can redirect example.com over to www.example.com with a Page Rule:

Match: example.com/* and Forward it as a 301 to https://www.example.com/$1 (or http if you don’t have SSL enabled)


#4

Thanks, giving that a try.


#5

I only see CF headers when I then request www. domain. After that CF headers disappear when clicking around teh site.


#6

Anything at www.example.com should have Cloudflare headers. If you’d like me to take a look, post your domain’s URL.


#7

Thanks for this. Was fighting with it for a while tonight but this finally worked. Thank you very much for your help!


#8

https://www.hostnexus.net shows CF headers. But if you click on a link and inspect headers there is no CF.

This is just a test site.


#9

That’s because the www is going through Cloudflare, but the non-www is not. Since you’re using Wordpress, can you use the General Settings and change the site’s URL to the www domain? Or do it in wp-config.php.

https://codex.wordpress.org/Changing_The_Site_URL


#10

I’m having the same issue. I had to disable the CNAME DNS record pointing to Cloudflare because an HTML5 ad was displaying images via example.com but not www.example.com

Would love to have Cloudflare managing the load but at this point I didn’t find any good solution for the issue :frowning:


#11

Partner setups often require you to use a www domain, so I frequently recommend a Page Rule that redirects example.com/* over to www.example.com/$1

Then make sure your website is set up to use the www URL.


#12

I can easily set the domain to work with WWW. But the whole point of this exercise was to see if I could get CF working with the domain with WWW through a partner plugin. Looks like that is not possible?


#13

I’ve not used partner hosting, but it seems that some partners just won’t configure your site to work through Cloudflare without the www. This is because a non-www DNS record is technically supposed to be an A record IP address, not a CNAME, and that’s not how partners configure the Cloudflare link.

Here’s the long and short of it:


Regarding your Hostnexus setup, I don’t know why it’s returning your origin IP address for non-www, but using Cloudflare for www.


#14

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