Categories
< All Topics
Print

How To Force HTTPS / auto SSL redirect

In your website location (inside /plublic_html) edit/make a file called .htaccess

Then enter the below code, then save.

RewriteEngine On
RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Table of Contents