<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
这是apache的.htaccess
改写成nginx
求大佬指点。
广东网友:宝塔好像有个转NG的
新疆网友:在线网站转的:
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)$ /index.php/$1 break;
- }
- }
复制代码
青海网友:这个不对。放弃了。就用apache
未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 求助 apache伪静态转nginx