+ -
当前位置:首页 → 问答吧 → apache rewrite 怎么改写成nginx

apache rewrite 怎么改写成nginx

时间:2009-03-12

来源:互联网

Apache :
RewriteEngine on
RewriteCond %{REQUEST_URI} !^.*(\.html|\.xml|\.css|\.js|\.gif|\.png|\.jpg|\.jpeg)$|.*(FCKeditor).*
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

怎么改写成nginx的????????????

作者: joknang   发布时间: 2009-03-12

同求~~~

作者: londit.cn   发布时间: 2009-03-12

server{
#.......
location /newproject/ {
          index index.php;
         
           if (!-e $request_filename) {
           rewrite ^(/newproject/.*)$ /newproject/index.php last;
           }
       }
}

作者: joknang   发布时间: 2009-03-12

热门下载

更多