ENH prevent redirect loop

This commit is contained in:
Igor 2015-09-25 10:57:53 +12:00
parent 00d26d5f2d
commit c9358eee6c

View File

@ -39,6 +39,10 @@ ErrorDocument 500 /assets/error-500.html
SetEnv HTTP_MOD_REWRITE On SetEnv HTTP_MOD_REWRITE On
RewriteEngine 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 # Enable HTTP Basic authentication workaround for PHP running in CGI mode
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]