首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

apache跟ngnix的伪静态设置

2012-07-27 
apache和ngnix的伪静态设置论坛里的一个插件rewrite规则Apache:RewriteRule ^(.*)/tel114\.html\?*(.*)$ $

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;

热点排行