A-A+

齐博地方门户系统在nginx下的伪静态规则

2013年09月02日 齐博cms 暂无评论 阅读 230 次浏览 次

地方门户或B2B或者是分类系统的商铺伪静态规则如下

location / {
      rewrite ^(.*)-htm-(.*)$ $1.php?Rurl=$2 last;
}
 
分类系统多城市高级伪静态规则如下
location / {
rewrite ^(.*)/([^\/]+)/f([^\/]+)\.([a-zA-Z0-9]+)$ $1/bencandy.php?Fid=$2&Id=$3 last;
rewrite ^(.*)/([^\/]+)/([^\/]+)/$ $1/list.php?Fid=$3&zone_street=$2 last;
rewrite ^(.*)/([^\/]+)/$ $1/list.php?Fid=$2 last;     
rewrite ^(.*)/(list|bencandy)-([^\.]+)\.([a-zA-Z0-9]+)$ $1/$2.php?stringID=$3 last;
rewrite ^(.*)/post\.([a-z]+)$ $1/post.php last;
rewrite ^(.*)/post-([0-9]+)-([0-9]+)\.([a-z]+)$ $1/post.php?fid=$2&city_id=$3 last;
rewrite ^(.*)/post-edit-([0-9]+)-([0-9]+)\.([a-z]+)$ $1/post.php?job=edit&fid=$2&id=$3 last;
rewrite ^(.*)/post-del-([0-9]+)-([0-9]+)\.([a-z]+)$ $1/post.php?action=del&fid=$2&id=$3 last;

}

标签:

评论已关闭!

Copyright © 香港虚拟主机_美国虚拟主机_香港服务器_美国服务器租用托管 保留所有权利.   Theme  Ality 蜀ICP备14006632号-1

用户登录