您的位置:首页 > 理论基础 > 计算机网络

备份IIS httpd.ini 重写规则,兼容大部分版本号IISserver

2015-02-12 10:12 435 查看
IISserver已经非常少,差点儿要退出市场了。nginx成为市场的主流。

备份一个httpd.ini,全部内容例如以下:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

#RewriteCond Host: !^job\.zbphp\.com$
#RewriteRule ^(.*)$ http\://job\.zbphp\.com$1 [I,R]

RewriteRule ^/public/([a-z0-9]{32})\.html$ /detail\.php\?md5=$1
RewriteRule ^/so([a-z]+)_([^\/]+)/?$ /search\.php\?rewritefn=$1&$1=$2&page=$3
RewriteRule ^/so([a-z]+)_([^\/]+)/([0-9]+)\.html$ /search\.php\?rewritefn=$1&$1=$2&page=$3

#IIS ErrorDocument
RewriteRule ^/([0-9]{3})\.(php|asp|htm|html)$ /error\.php\?e=$1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: