Control Web Panel
WebPanel => SSL => Topic started by: elyas on July 07, 2019, 07:35:36 PM
-
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
-
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