if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
rewrite ^/admin.php(.*)$ /admin.php?s=$1 last;
rewrite ^/api.php(.*)$ /api.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
上面是网站 www xxxx. com 的伪静态规则 能正常用
下面是 www xxxx. com /bbs 的伪静态规则 也能正常用
location /am/ {
index index.html index.htm index.php l.php;
autoindex off;
if (!-e $request_filename){
rewrite ^/am/(.*)$ /am/index.php/$1 last;
}
}
但是把两条规则放在一起就只能用上面一个了
怎么在宝塔里写 可能让两个站都可以用呢
请先看清楚啊,,我要的是
www xxxx. com /bbs
这样的
|
|