Live Chat Software by Kayako |
|
Redirect HTTP to HTTPS
Posted by Ruthy S on 17 July 2017 07:09 PM
|
||||
|
To force all web traffic to use HTTPS insert the following lines of code in the .htaccess file in your website’s root folder. Important:If you have existing code in your .htaccess, add this above where there are already rules with a similar starting prefix.
Be sure to replace www.example.com with your actual domain name. To force a specific domain to use HTTPS, use the following lines of code in the .htaccess file in your website's root folder:
If you want to force SSL on a specific folder you can insert the code below into a .htaccess file placed in that specific folder:
Make sure you change the folder reference to the actual folder name. Then be sure to replace www.example.com/folder with your actual domain name and folder you want to force the SSL on. | ||||
|
|
||||
