New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Why SSL Doesn't work with WWW version of Website?

Started by Domains, January 07, 2023, 06:27:08 PM

Previous topic - Next topic

Domains

Hello,
My websites works OK with non-WWW address, but when I open them with "www" prefix I always get SSL warning in browser.
Anyone else have same issue?

Here are some examples:
https://www.theeasttravel.com  (show warning in Browser)
https://theeasttravel.com          (without www SSL Works Fine)

https://www.wonderfulsearch.com/   (show warning in Browser)
https://wonderfulsearch.com/           (without www SSL Works Fine)

How can I fix this? any help please? :-\


PakPos

www IN A ip.ip.ip.ip
or
www IN CNAME @
or
* IN CNAME @

overseer

The difference between an A record vs CNAME is an extra DNS lookup. In case of the CNAME the after figuring out that www is a CNAME to example.com, another look will be done for example.com.

If you are planning on using a CDN or a 3 party acceleration service (Cloudflare), then a CNAME becomes important. Example a lookup of www.google.com results in the following. See the difference in TTL of www.l.google.com and www.google.com:

www.google.com.     36545   IN  CNAME   www.l.google.com.
www.l.google.com.   294     IN  A       209.85.153.104

This gives the flexibility of changing the A record, keeping a lower TTL, doing fancy stuff like geo-redirection, if using 3rd party services.

In this case, it doesn't matter since both are pointing both to the same IP (domain=www) -- as is commonly the case with smaller sites.