From b1a39f1724c6a5035c5af326acda312140bb2fa1 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 6 Feb 2026 09:54:24 -0500 Subject: [PATCH] Handle X-Forwarded-Proto in .htaccess for SSL-terminating proxies (#2171) --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index b574a597d..fa2217f8f 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,6 +5,10 @@ RewriteEngine On + # Handle X-Forwarded-Proto Header + RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC] + RewriteRule .* - [E=HTTPS:on] + # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]