shopnc B2B2C商城 Nginx下开启伪静态
B2B2C商城 Nginx下开启伪静态,伪静态开启后,对系统的SEO极为有利,可以最大限度让商城页面被搜索引擎抓取,但在实际安装中,很多客户在这块都会遇到各种各样的问题。
1. 编辑商城配置文件(data/config/config.ini.php)
2. 编辑商城Nginx配置文件:
保存并重启Nginx。
|
1
|
$config['url_model'] = true; |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
server { #............................ #............................ # 追加 if (!-e $request_filename) { rewrite ^/(shop|admin|circle|microshop|cms)/(.*)html$ /$1/index.php?$2; } location ~ \.php$ { #............................ #............................ # 追加 fastcgi_param PATH_INFO $request_uri; } #............................ #............................} |

浙公网安备 33010602011771号