`console.log(<?xml version="1.0" encoding="UTF-8"?>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1">
<match url="^article/(\d+)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?m=article&a=index&id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2" stopProcessing="true">
<match url="^article/(\d+)/$" ignoreCase="false" />
<action type="Redirect" url="/article/{R:1}" redirectType="Permanent" />
</rule>
<rule name="已导入的规则 3">
<match url="^tag/(.*?)/(\d+)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=tag&a=index&tag={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4">
<match url="^tag/(.*?)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=tag&a=index&tag={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 5">
<match url="^tagcloud/(\d+)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=tag&a=tagcloud&page={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 6">
<match url="^history/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=history&a=index" appendQueryString="false" />
</rule>
<rule name="已导入的规则 7">
<match url="^history/(\d+)/(\d+)/(\d+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=history&a=index&year={R:1}&month={R:2}&day={R:3}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 8">
<match url="^history/(\d+)/(\d+)/(\d+)/(\d+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=history&a=index&year={R:1}&month={R:2}&day={R:3}&page={R:4}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 9">
<match url="^users/(\d+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=users&a=index&uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 10">
<match url="^users/(\d+)/article/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=users&a=index&uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 11">
<match url="^users/(\d+)/article/(\d+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=users&a=index&uid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 12">
<match url="^users/(\d+)/(\w+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=users&a={R:2}&uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 13">
<match url="^users/(\d+)/(\w+)/(\d+)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=users&a={R:2}&uid={R:1}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 14">
<match url="^avatar/(\w)/(\d+).jpg$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=avatar&a=index&size={R:1}&uid={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 15">
<match url="^m/(.*?)$" ignoreCase="false" />
<action type="Rewrite" url="m/{R:1}" />
</rule>
<rule name="已导入的规则 16">
<match url="^(\w+)/$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?m=index&a={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 17">
<match url="^(\w+)/(\d+)/$" ignoreCase="false" />
<action type="Rewrite" url="index.php?m=index&a={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 18" stopProcessing="true">
<match url="^(\w+)$" ignoreCase="false" />
<action type="Redirect" url="/{R:1}/" redirectType="Permanent" />
</rule>
<rule name="已导入的规则 19" stopProcessing="true">
<match url="^(\w+)/(\w+)$" ignoreCase="false" />
<action type="Redirect" url="/{R:1}/{R:2}/" redirectType="Permanent" />
</rule>
<rule name="已导入的规则 20" stopProcessing="true">
<match url="^(\w+)/(\w+)/(\w+)$" ignoreCase="false" />
<action type="Redirect" url="/{R:1}/{R:2}/{R:3}" redirectType="Permanent" />
</rule>
<rule name="已导入的规则 21" stopProcessing="true">
<match url="^(\w+)/(\w+)/(\w+)/(\w+)$" ignoreCase="false" />
<action type="Redirect" url="/{R:1}/{R:2}/{R:3}/{R:4}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
)`
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。