- Added forcing https in the htaccess on need

This commit is contained in:
mcndave committed 2022-03-15 15:57:01 +00:00
1 parent 06313396f5
commit 73aa22942f
1 file changed
+4
+4
View File
@@ -1,6 +1,10 @@
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On RewriteEngine On
# Force HTTPS (disabled by default)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Remove trailing slashes from request URL # Remove trailing slashes from request URL
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$ RewriteCond %{REQUEST_URI} (.+)/$