Skip to content

Commit 8d1d1e1

Browse files
authored
Update .htaccess
This rewrite condition is never hit as the rewrite to index is triggered before this, and the authorization is never passed on. Moving this condition corrects that issue as mentioned on the commit
1 parent 4bbd5f9 commit 8d1d1e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

public/.htaccess

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
RewriteEngine On
77

8+
# Handle Authorization Header
9+
RewriteCond %{HTTP:Authorization} .
10+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11+
812
# Redirect Trailing Slashes If Not A Folder...
913
RewriteCond %{REQUEST_FILENAME} !-d
1014
RewriteCond %{REQUEST_URI} (.+)/$
@@ -14,8 +18,4 @@
1418
RewriteCond %{REQUEST_FILENAME} !-d
1519
RewriteCond %{REQUEST_FILENAME} !-f
1620
RewriteRule ^ index.php [L]
17-
18-
# Handle Authorization Header
19-
RewriteCond %{HTTP:Authorization} .
20-
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
2121
</IfModule>

0 commit comments

Comments
 (0)