IIS下ISAPI_Rewrite配置

天远科技  发表于:2015-08-23  分类:Web Serve  阅读(3799)  赞同34
[ISAPI_Rewrite]
# Defend your computer from some worm attacks
#RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
#RewriteRule /tag/(.*) /index\.php\?tag=$1
#RewriteRule /software-files/(.*) /software-files/$1 [L]
#RewriteRule /images/(.*) /images/$1 [L]
#RewriteRule /bbs/(.*) /bbs/$1 [L]
#RewriteRule /phpmyadmin/(.*) /phpmyadmin/$1 [L]
#RewriteRule /sitemap.xml /sitemap.xml [L]
#RewriteRule /favicon.ico /favicon.ico [L]
#RewriteRule /unzip.php /unzip.php [L]
# For file-based wordpress content (i.e. theme), admin, etc.
#RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
#RewriteRule ^/$ /index.php [L]
#RewriteRule /(.*) /index.php/$1 [L]
RewriteCond Host: ^oa\.nbidea\.cn$
RewriteRule ^(.*)$ /oa/$1 [I]
RewriteRule ^/imgcode/(.*)$ /oa/imgcode/$1 [I]

RewriteCond Host: ^oa\.tynt\.cn

RewriteRule /oa/(.*)$ /oa-$1 [I]
博文分类

线

在线联系
点击这里给我发消息
点击这里给我发消息
关注我们