ERR_NAME_NOT_RESOLVED for non-www version of domain

I’m having error ERR_NAME_NOT_RESOLVED on non-www version of my website:

I have only 2 CNAME records with name as: ‘www’ and 'domainname.com', pointing to the same heroku dns target.
SSL setting is on full (on flexible I get ERR_TOO_MANY_REDIRECTS error)

I have set a page rule to redirect to www but it seems to not be working (same error after I switch it off)

On Heroku domain is registered with ‘www’ prefix

what might be the cause of this?

domain name: mostuniquehotels.com

Many thanks in advance

Peter

The ERR_NAME_NOT_RESOLVED is likely just DNS Cache. For me, your page loads, but fails due to a missing SSL Cert:


You could want to either add your root domain to Heroku so it issues a certificate for it, and it works, or add a redirect rule like you mentioned you had at one point.

1 Like

Thank you Chaika, indeed after flushing cache and adding page rule to redirect it works!

2 Likes

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