mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
ENH prevent redirect loop
This commit is contained in:
parent
00d26d5f2d
commit
c9358eee6c
@ -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}]
|
||||||
|
Loading…
Reference in New Issue
Block a user