Force https for local environment as well
This commit is contained in:
1 parent
fe8c59e83c
commit
8ef243e823
1 file changed
+3
@@ -264,6 +264,9 @@ AddDefaultCharset utf-8
|
|||||||
# Enable URL rewriting
|
# Enable URL rewriting
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
RewriteCond %{HTTPS} off
|
||||||
|
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
|
||||||
|
|
||||||
# Store the current location in an environment variable CWD to use
|
# Store the current location in an environment variable CWD to use
|
||||||
# mod_rewrite in .htaccess files without knowing the RewriteBase
|
# mod_rewrite in .htaccess files without knowing the RewriteBase
|
||||||
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
|
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
|
||||||
|
|||||||
Reference in new issue
Block a user