Force HTTPS with .htaccess

To force your website to use SSL using a .htaccess file, add the following to your existing .htaccess file. If you don't have one, be sure to create it in the root of your website.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


  Add Comment

Confirm Submission

Please enter the text from the image in the box provided, this helps us to prevent spam.

Powered by WHMCompleteSolution