mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 05:21:29 +02:00
Small .htacess update for HTTPS redirect support on AWS ELB
This commit is contained in:
@@ -94,6 +94,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.
|
||||||
# Note that some web hosts don't support this. If you get a 500 error, you might try
|
# Note that some web hosts don't support this. If you get a 500 error, you might try
|
||||||
|
Reference in New Issue
Block a user