To force the HTTPS connection on your website, add the following lines inside the website’s .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
If your website is made with WordPress then you can also use the Realy Simple SSL plugin to solve it.
Leave A Comment?