阿尔海南粉 发表于 2016-12-27 11:19:18

Shopex部分产品的Nginx伪静态

  首先服务器必须支持伪静态,如apache需要加载 mod_rewrite.so 扩展。
  商派部分产品的伪静态:
  1)、经典商城产品 Shopex4.8.5

location /PATH/ {
if (!-e $request_filename) {
rewrite ^/PATH/(.*)$ /PATH/index.php?$1 last;
}
}
或者
location / {
index   index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?$1 last;
}
}
  2)、EcStore产品

    location / {
index   index.php index.html index.htm;
if ($request_uri ~ (.+?\.php)(|/.+)$) {
break;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
location ~ ^/shopadmin {
rewrite^/(.*)$/index.php/$1last;
break;
}
页: [1]
查看完整版本: Shopex部分产品的Nginx伪静态