Skip to content

Commit abdbc59

Browse files
committed
Update .htaccess
1 parent 14ef921 commit abdbc59

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Framework/bin/.htaccess

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
AddType image/webp .webp
4646
</IfModule>
4747

48+
## Redirection limit
49+
<IfModule mod_rewrite.c>
50+
RewriteEngine On
51+
RewriteCond %{ENV:REDIRECT_COUNT} <2
52+
RewriteRule ^ - [E=REDIRECT_COUNT:%{ENV:REDIRECT_COUNT}1]
53+
RewriteCond %{ENV:REDIRECT_COUNT} >=2
54+
RewriteRule ^ public/page/error.html [L]
55+
</IfModule>
56+
4857
## UTF-8 encoding
4958
AddDefaultCharset utf-8
5059
AddCharset utf-8 .atom .css .js .json .rss .xml

0 commit comments

Comments
 (0)