Browse Source

兼容windows下apache的pathinfo

PPPSCN 8 years ago
parent
commit
716bb2e2c5
2 changed files with 4 additions and 2 deletions
  1. 3 1
      .gitignore
  2. 1 1
      public/.htaccess

+ 3 - 1
.gitignore

@@ -5,4 +5,6 @@ composer.lock
 thinkphp
 vendor
 runtime
-public/assets/libs/
+public/assets/libs/
+/application/admin/command/Install/*.lock
+/public/uploads

+ 1 - 1
public/.htaccess

@@ -4,5 +4,5 @@
 
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
-  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
+  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
 </IfModule>