caolongle 2 years ago
parent
commit
24ab1eb533
1 changed files with 5 additions and 18 deletions
  1. 5 18
      public/.htaccess

+ 5 - 18
public/.htaccess

@@ -1,21 +1,8 @@
1 1
 <IfModule mod_rewrite.c>
2
-    <IfModule mod_negotiation.c>
3
-        Options -MultiViews -Indexes
4
-    </IfModule>
2
+  Options +FollowSymlinks -Multiviews
3
+  RewriteEngine On
5 4
 
6
-    RewriteEngine On
7
-
8
-    # Handle Authorization Header
9
-    RewriteCond %{HTTP:Authorization} .
10
-    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11
-
12
-    # Redirect Trailing Slashes If Not A Folder...
13
-    RewriteCond %{REQUEST_FILENAME} !-d
14
-    RewriteCond %{REQUEST_URI} (.+)/$
15
-    RewriteRule ^ %1 [L,R=301]
16
-
17
-    # Handle Front Controller...
18
-    RewriteCond %{REQUEST_FILENAME} !-d
19
-    RewriteCond %{REQUEST_FILENAME} !-f
20
-    RewriteRule ^ index.php [L]
5
+  RewriteCond %{REQUEST_FILENAME} !-d
6
+  RewriteCond %{REQUEST_FILENAME} !-f
7
+  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
21 8
 </IfModule>