Select Page
How Can We Help?
< Back
You are here:
Print

How to force SSL with .htaccess

You can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file:

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

 

Table of Contents