Author Topic: question about ssl  (Read 4752 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
question about ssl
« 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


Offline
**
Re: question about ssl
« Reply #1 on: July 07, 2019, 10:58:01 PM »
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