伪静态规则如下:
Nginx:- rewrite ^([^\.]*)/zhaobiao\.shtml$ $1/plugin.php?id=blood_zxzb:zb last;
- rewrite ^([^\.]*)/zhaobiao_show_([0-9]+)\.shtml$ $1/plugin.php?id=blood_zxzb:zb&mod=show&zid=$2 last;
- rewrite ^([^\.]*)/zhaobiao_list_0_([0-9]+)\.shtml$ $1/plugin.php?id=blood_zxzb:zb&page=$2 last;
复制代码 apache- RewriteRule ^zhaobiao\.shtml$ plugin.php?id=blood_zxzb:zb
- RewriteRule ^zhaobiao_show_([0-9]+)\.shtml$ plugin.php?id=blood_zxzb:zb&mod=show&zid=$1
- RewriteRule ^zhaobiao_list_0_([0-9]+)\.shtml$ plugin.php?id=blood_zxzb:zb&page=$1
复制代码 IIS- RewriteRule ^(.*)zhaobiao\.shtml$ $1/plugin\.php\?id=blood_zxzb:zb
- RewriteRule ^(.*)zhaobiao_show_([0-9]+)\.shtml$ $1/plugin\.php\?id=blood_zxzb:zb&mod=show&zid=$2
- RewriteRule ^(.*)zhaobiao_list_0_([0-9]+)\.shtml$ $1/plugin\.php\?id=blood_zxzb:zb&page=$2
复制代码 |