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]
Comments
Powered by WHMCompleteSolution
Add Comment