diff --git a/htaccess.txt b/htaccess.txt index e8182f1a..9df7caea 100644 --- a/htaccess.txt +++ b/htaccess.txt @@ -93,6 +93,10 @@ DirectoryIndex index.php index.html index.htm # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTPS} off # 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.