将下面代码放到vhost的配置文件中即可:
if ($request_uri ~ (.+?\.php)(|/.+)$ ){ break; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; } location ~ ^/shopadmin { rewrite ^/(.*)$ /index.php/$1 last; break; }
如下图:
将下面代码放到vhost的配置文件中即可:
if ($request_uri ~ (.+?\.php)(|/.+)$ ){ break; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; } location ~ ^/shopadmin { rewrite ^/(.*)$ /index.php/$1 last; break; }
如下图:
关键词:多用户,商城,b2b2,的,Nginx
转载请保留:http://www.hnqss.cn/html/jszx/b2b2c/article-2667.html