Onex ecstore开启伪静态(nginx篇)

一、修改 nginx.conf文件,添加如下代码:

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

二、修改配置文件:

vim   ecstore/config/config.php
//修改文件,改为:
defind('WITH_REWRITE',true)
//伪静态即可开启

补充说明

if ($request_uri ~ (.+?\.php)(|/.*)$ ){
break;
}