Cannot open website via www but can open via https


My website cannot open via www but can open via https

The site is

Faithfully yours,
Thanetphon L.


Hi Thanetphon,

It looks to me like when someone connects to, your web server sends a 301 redirect

< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html
< Content-Length: 617
< Date: Sun, 06 Jan 2019 03:17:41 GMT
< Server: LiteSpeed
< Location:
< Vary: User-Agent
< Connection: Keep-Alive

which points the user’s browser at, which loads successfully. Is this not what you wanted?

If you’re referring to and (with the www prefix), they have a different DNS setup from the base domain.

$ host has address mail is handled by 20 mail is handled by 10
$ host is an alias for

You have a DNS CNAME record that points to, which does not exist. If you want this to work via Cloudflare, you’ll have to do some more setup on Cloudflare’s site and follow their documentation about what the DNS records should say.

If you want it not to be proxied by Cloudflare, you should get rid of this CNAME record and create an A record that points to the same web server that the base domain is pointed to ( Since your Let’s Encrypt certificate does cover both the base domain and the subdomain, this should most likely work properly once the DNS record has been fixed.



I’ve moved this topic to #help.

Thank you

closed #5

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