Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit a70212f

Browse files
committed
Merge branch '2.5'
* 2.5: Add RewriteRule
2 parents b91fd6b + 938b35d commit a70212f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ DirectoryIndex app.php
1818
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
1919
RewriteRule ^(.*) - [E=BASE:%1]
2020

21+
# Sets the HTTP_AUTHORIZATION header removed by apache
22+
RewriteCond %{HTTP:Authorization} .
23+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
24+
2125
# Redirect to URI without front controller to prevent duplicate content
2226
# (with and without `/app.php`). Only do this redirect on the initial
2327
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an

0 commit comments

Comments
 (0)