新增伪静态规则文件

feat/task1-c-wallet
devil_gong 2018-12-29 13:49:13 +08:00
parent 05404fb186
commit bb4ecf5df5
2 changed files with 6 additions and 1 deletions

View File

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

5
public/htaccess-nginx Normal file
View File

@ -0,0 +1,5 @@
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}