httpd.ini怎么转成web.config

这是httpd.ini文件的内容[ISAPI_Rewrite]#DestoonV3.0#3600=1hourCacheClockRate3600RepeatLimit32... 这是httpd.ini文件的内容
[ISAPI_Rewrite]
# Destoon V3.0
# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404\.php
RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2
RewriteRule ^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$ $1/show\.php\?itemid=$2&page=$4
RewriteRule ^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ $1/list\.php\?catid=$2&page=$4
RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show\.php\?itemid=$2&page=$3
RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)/(.*)\.html$ $1/company/$3/index\.php\?homepage=$2&rewrite=$4
RewriteRule ^(.*)/com/([a-z0-9_]+)/([a-z]+)([/])?$ $1/company/$3/index\.php\?homepage=$2
RewriteRule ^(.*)/com/([a-z0-9_]+)([/])?$ $1/company/index\.php\?homepage=$2
RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index\.php\?rewrite=$3
展开
 我来答
ChenTangRu
推荐于2016-08-15 · 超过12用户采纳过TA的回答
知道答主
回答量:64
采纳率:0%
帮助的人:42.9万
展开全部
<rewrite>
<rules>
<rule name="Imported Rule 34">
<match url="^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/404\.php" />
</rule>
<rule name="Imported Rule 35">
<match url="^(.*)-htm-(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}\.php\?{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 36">
<match url="^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/show\.php\?itemid={R:2}&page={R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 37">
<match url="^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/list\.php\?catid={R:2}&page={R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 38">
<match url="^(.*)/show/([0-9]+)/([0-9]+)?([/])?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/show\.php\?itemid={R:2}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 39">
<match url="^(.*)/list/([0-9]+)/([0-9]+)?([/])?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/list\.php\?catid={R:2}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 40">
<match url="^(.*)/com/([a-z0-9_]+)/([a-z]+)/(.*)\.html$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/company/{R:3}/index\.php\?homepage={R:2}&rewrite={R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 41">
<match url="^(.*)/com/([a-z0-9_]+)/([a-z]+)([/])?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/company/{R:3}/index\.php\?homepage={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 42">
<match url="^(.*)/com/([a-z0-9_]+)([/])?$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/company/index\.php\?homepage={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 43">
<match url="^(.*)/([a-z]+)/(.*)\.shtml$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/{R:2}/index\.php\?rewrite={R:3}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式