nginx配置thinkphp rewrite

浏览:1037 发布日期:2015/10/28 分类:求助交流
Apache:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
Nginx:
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
是这样改写吗
最佳答案
评论( 相关
后面还有条评论,点击查看>>