Cloudflare subdomain with www not working


#1

I want to use cloudflare to get the following scenario working:

www.mydomainname.de -> CNAME to -> myapp.herokuapp.com
mydomainname.de -> CNAME to -> myapp.herokuapp.com

help.mydomainname.de -> CNAME to -> websitebuilder.whatever.de
www.help.mydomainname.de -> CNAME to -> websitebuilder.whatever.de

Everything is working except the last one. www.help.mydomainname.de does not resolve. I tried it with a redirect page rule but this does not work.

My Page rules are:

CNAME bestelloo.de is an alias for myapp.herokuapp.com
CNAME help is an alias for websitebuilder.whatever.de
CNAME www is an alias for myapp.herokuapp.com


#2

help.bestelloo.de doesn’t resolve. This needs to be in your DNS settings here at Cloudflare. Same with www.help.bestelloo.de

For your root domain, you need to decide if you want to go by www or without the www. Then redirect one to the other. Same with the help subdomain. Typically, subdomains don’t get a www, but it’s put to you. Just pick one.

For those redirects, I would use a Page Rules that matches one, then Forwarding URL to the other with a 301 redirect.


#3

I added help.bestelloo.de to my DNS settings. http://help.bestelloo.de/ resolves correctly, but http://www.help.bestelloo.de/ does not work. Which setting i am missing here ?


#4

www.help should resolve. It doesn’t matter if it’s a CNAME or an A record; if it’s :orange: or :grey:. I should see an IP address when I query for that subdomain.

Can you post a screen shot of that part of the Cloudflare DNS page with the CNAMEs?


#5

There it is: https://ibb.co/c0h1Q8


#6

You need another CNAME entry that’s just www.help that points to bestoullidua (please don’t make have to spell that all out). Just like the CNAME entry for help.

The problem you’re going to have is Cloudflare’s SSL certificate won’t work for a sub-subdomain. You’d have to pay for a $10/month certificate with Custom Host Names.

Most of the time, websites don’t have a www in front of a subdomain, like www.community.cloudflare.com or www.support.cloudflare.com don’t resolve. You’re better off without that one.


#7

Thank you for your help. I’ll redirect all www to the non-www domain. Thank you for your advice.


#8

This topic was automatically closed after 14 days. New replies are no longer allowed.