日期:2014-05-17  浏览次数:20792 次

apache和ngnix的伪静态设置
论坛里的一个插件rewrite规则

Apache:
RewriteRule ^(.*)/tel114\.html\?*(.*)$ $1/plugin.php?id=sanree_tel114&$2
RewriteRule ^(.*)/tel114-(index|view)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_tel114&mod=$2&tid=$3&$4


Ngnix:
rewrite ^([^\.]*)/tel114\.html\?*(.*)$ $1/plugin.php?id=sanree_tel114&$2 last;
rewrite ^([^\.]*)/tel114-(index|view)-(.+)\.html\?*(.*)$ $1/plugin.php?id=sanree_tel114&mod=$2&tid=$3&$4 last;