How to force https on your website

To force your site to use HTTPS for all pages, add the following to your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Leave a comment

Your email address will not be published. Required fields are marked *