Skip to content

Commit d458d20

Browse files
committed
added .htaccess
1 parent f062a98 commit d458d20

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.htaccess

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine On
3+
RewriteRule ^(.*)$ public/$1 [L]
4+
</IfModule>

public/.htaccess

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
<IfModule mod_rewrite.c>
22
<IfModule mod_negotiation.c>
3-
Options -MultiViews -Indexes
3+
Options -MultiViews
44
</IfModule>
55

66
RewriteEngine On
77

8-
# Handle Authorization Header
9-
RewriteCond %{HTTP:Authorization} .
10-
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11-
128
# Redirect Trailing Slashes If Not A Folder...
139
RewriteCond %{REQUEST_FILENAME} !-d
14-
RewriteCond %{REQUEST_URI} (.+)/$
15-
RewriteRule ^ %1 [L,R=301]
10+
RewriteRule ^(.*)/$ /$1 [L,R=301]
1611

1712
# Handle Front Controller...
1813
RewriteCond %{REQUEST_FILENAME} !-d
1914
RewriteCond %{REQUEST_FILENAME} !-f
2015
RewriteRule ^ index.php [L]
21-
</IfModule>
16+
17+
# Handle Authorization Header
18+
RewriteCond %{HTTP:Authorization} .
19+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
20+
</IfModule>

0 commit comments

Comments
 (0)