From c9358eee6c546119f78acda54266f458e78d04e0 Mon Sep 17 00:00:00 2001 From: Igor Date: Fri, 25 Sep 2015 10:57:53 +1200 Subject: [PATCH] ENH prevent redirect loop --- .htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.htaccess b/.htaccess index 81693c6..ea3275d 100644 --- a/.htaccess +++ b/.htaccess @@ -39,6 +39,10 @@ ErrorDocument 500 /assets/error-500.html SetEnv HTTP_MOD_REWRITE On RewriteEngine On + + ## Internal Redirect Loop Protection + RewriteCond %{ENV:REDIRECT_STATUS} 200 + RewriteRule ^ - [L] # Enable HTTP Basic authentication workaround for PHP running in CGI mode RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]