Force HTTP to HTTPS (SSL) via . htaccess

Force HTTP to HTTPS (SSL) via . htaccess

RewriteOptions inherit
Options -Indexes
#SecFilterEngine Off

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

<IfModule mod_alias.c>
</IfModule>

 


Revision #2
Created 12 December 2021 04:52:55 by Janusz Tylek
Updated 3 December 2022 16:11:17 by Janusz Tylek