Answers for "force HTTPS on your website"

1

how to automatically redirect to https

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Posted by: Guest on July-02-2020

Browse Popular Code Answers by Language