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 ›

question about ssl

Started by elyas, July 07, 2019, 07:35:36 PM

Previous topic - Next topic

elyas

hi
i have cwp and i have user domain in that
now i run ssl and i have it in this domain and i want to run wordpress:

https://www.liteserver.tk/

and its run in http:

http://www.liteserver.tk/

now what should i do?

redirect http to https?

and wich one is better?

1-just have https
2-have http and https and redirect http to https

and how should i do thats?


sorry if it is very simple question
i really dont know what to do

plz help me
thank


evansa

Create an .htaccess file in your docRoot and add the following:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yoursite.com [NC]
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301,NC]


But please Change every instance of yoursite.com to your WordPress URL