mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 13:01:26 +02:00
Small .htacess update for HTTPS redirect support on AWS ELB
This commit is contained in:
@@ -93,6 +93,10 @@ DirectoryIndex index.php index.html index.htm
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
# RewriteCond %{HTTPS} off
|
# RewriteCond %{HTTPS} off
|
||||||
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||||
|
|
||||||
|
# If using an AWS load balancer, use these two lines below instead of those above:
|
||||||
|
# RewriteCond %{HTTP:X-Forwarded-Proto} =http
|
||||||
|
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
# 10. Set an environment variable so the installer can detect that mod_rewrite is active.
|
# 10. Set an environment variable so the installer can detect that mod_rewrite is active.
|
||||||
|
Reference in New Issue
Block a user