安装包根目录下web.config
<rewrite> <rules> <rule name="已导入的规则 1"> <match url="^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$" 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="/404.htm" /> </rule> <rule name="已导入的规则 2" stopProcessing="true"> <match url="^admin/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=admin/{R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 3" stopProcessing="true"> <match url="^admin/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=admin/{R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 4" stopProcessing="true"> <match url="^config/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="/404.htm" appendQueryString="true" /> </rule> <rule name="已导入的规则 5" stopProcessing="true"> <match url="^m/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/index/index" appendQueryString="true" /> </rule> <rule name="已导入的规则 6" stopProcessing="true"> <match url="^m/(.*)_(.*)/(.*)_(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/show/index&etitle={R:3}&area={R:1}&cw={R:4}" appendQueryString="true" /> </rule> <rule name="已导入的规则 7" stopProcessing="true"> <match url="^m/(.*)_(.*)/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/show/index&etitle={R:3}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 8" stopProcessing="true"> <match url="^m/search/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/search/index" appendQueryString="true" /> </rule> <rule name="已导入的规则 9" stopProcessing="true"> <match url="^m/myform/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/myform/index" appendQueryString="true" /> </rule> <rule name="已导入的规则 10" stopProcessing="true"> <match url="^m/captcha/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/myform/captcha&id={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 11" stopProcessing="true"> <match url="^m/(.*)_search/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/search/index&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 12" stopProcessing="true"> <match url="^m/(.*)/(.*)_(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/show/index&etitle={R:2}&cw={R:3}" appendQueryString="true" /> </rule> <rule name="已导入的规则 13" stopProcessing="true"> <match url="^m/(.*)_tag/([\s\S]*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/tag/index&title={R:2}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 14" stopProcessing="true"> <match url="^m/tag/([\s\S]*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/tag/index&title={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 15" stopProcessing="true"> <match url="^m/(.*)/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/show/index&etitle={R:2}" appendQueryString="true" /> </rule> <rule name="已导入的规则 16" stopProcessing="true"> <match url="^m/(.*)_(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/category/index&ctitle={R:2}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 17" stopProcessing="true"> <match url="^m/(.*)_(.*)/page/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/category/index&ctitle={R:2}&area={R:1}&page={R:3}" appendQueryString="true" /> </rule> <rule name="已导入的规则 18" stopProcessing="true"> <match url="^m/(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/category/index&ctitle={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 19" stopProcessing="true"> <match url="^m/(.*)/page/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/category/index&ctitle={R:1}&page={R:2}" appendQueryString="true" /> </rule> <rule name="已导入的规则 20" stopProcessing="true"> <match url="^m/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=wap/index/index&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 22" stopProcessing="true"> <match url="^statics/ueditor/dialogs/(.*)/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="statics/ueditor/dialogs/{R:1}/{R:2}.html" appendQueryString="true" /> </rule> <rule name="已导入的规则 23" stopProcessing="true"> <match url="^index(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/index/index/{R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 24" stopProcessing="true"> <match url="^(.*)_(.*)/(.*)_(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/show/index&etitle={R:3}&area={R:1}&cw={R:4}" appendQueryString="true" /> </rule> <rule name="已导入的规则 25" stopProcessing="true"> <match url="^(.*)_(.*)/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/show/index&etitle={R:3}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 26" stopProcessing="true"> <match url="^myform/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/myform/index" appendQueryString="true" /> </rule> <rule name="已导入的规则 27" stopProcessing="true"> <match url="^(.*)_myform/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/myform/index&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 28" stopProcessing="true"> <match url="^captcha/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/myform/captcha&id={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 29" stopProcessing="true"> <match url="^(.*)_captcha/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/myform/captcha&area={R:1}&id={R:2}" appendQueryString="true" /> </rule> <rule name="已导入的规则 30" stopProcessing="true"> <match url="^search/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/search/index" appendQueryString="true" /> </rule> <rule name="已导入的规则 31" stopProcessing="true"> <match url="^search/page/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/search/index&page={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 32" stopProcessing="true"> <match url="^(.*)_search/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/search/index&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 33" stopProcessing="true"> <match url="^(.*)/(.*)_(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/show/index&etitle={R:2}&cw={R:3}" appendQueryString="true" /> </rule> <rule name="已导入的规则 34" stopProcessing="true"> <match url="^(.*)/(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/show/index&etitle={R:2}" appendQueryString="true" /> </rule> <rule name="已导入的规则 35" stopProcessing="true"> <match url="^(.*)_tag/([\s\S]*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/tag/index&title={R:2}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 36" stopProcessing="true"> <match url="^tag/([\s\S]*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/tag/index&title={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 37" stopProcessing="true"> <match url="^(.*)_(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/category/index&ctitle={R:2}&area={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 38" stopProcessing="true"> <match url="^(.*)_(.*)/page/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/category/index&ctitle={R:2}&area={R:1}&page={R:3}" appendQueryString="true" /> </rule> <rule name="已导入的规则 39" stopProcessing="true"> <match url="^(.*)/$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/category/index&ctitle={R:1}" appendQueryString="true" /> </rule> <rule name="已导入的规则 40" stopProcessing="true"> <match url="^(.*)/page/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/category/index&ctitle={R:1}&page={R:2}" appendQueryString="true" /> </rule> <rule name="已导入的规则 41" stopProcessing="true"> <match url="^(.*).html$" ignoreCase="false" /> <action type="Rewrite" url="index.php?s=index/index/index&area={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite>
上一篇:切换到伪静态模式后打不开如何处理