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 ›

non WWW to WWW and HTTP to HTTPS??

Started by robaczek, September 24, 2018, 04:46:43 PM

Previous topic - Next topic

robaczek

Hi all, I'm new to all of this and just installed CWP7.0 pro and everything seem to be working fine, except, when I visit my website with WWW it loads just fine, but when I try to load it up without it, it shows the /cgi-sys/defaultwebpage.cgi webpage.

Same goes for redirecting the traffic from HTTP to HTTPS - my site is visible under both protocols.

I tried the usual route via HTACCESS file, but sadly it doesn't work.. Is there a place in the panel where I can configure this behaviour or some other way I can achieve this? Any help would be greatly appreciated.

Jamshed Datori

Which web server you are using? Apache, Apache + nginx or varnish??

robaczek

Quote from: jamshed_206 on September 25, 2018, 09:06:42 AM
Which web server you are using? Apache, Apache + nginx or varnish??

Apache + nginx + varnish

bullten

If www is working and without www redirecting to /cgi-sys/defaultwebpage.cgi then that means you are redirected to cpanel for all other protocols except www. Look in your domain dns.

robaczek

I'm managing my DNS on Cloudflare where I can see all entries point to my server IP address. What entry should I look for / add in order to achieve the required effect?

I have an A record for my domain.com that points to my server IP
I have a CNAME for WWW that is an alias of my domain.com

what else should I have?