IIS7伪静态显示500。。有没有高手帮我看一下我的伪静态规则哪里错了-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

IIS7伪静态显示500。。有没有高手帮我看一下我的伪静态规则哪里错了

2016-04-10 14:17:54 3338 0

`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&amp;a=index&amp;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&amp;a=index&amp;tag={R:1}&amp;page={R:2}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 4">
                <match url="^tag/(.*?)$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=tag&amp;a=index&amp;tag={R:1}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 5">
                <match url="^tagcloud/(\d+)$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=tag&amp;a=tagcloud&amp;page={R:1}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 6">
                <match url="^history/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=history&amp;a=index" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 7">
                <match url="^history/(\d+)/(\d+)/(\d+)/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=history&amp;a=index&amp;year={R:1}&amp;month={R:2}&amp;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&amp;a=index&amp;year={R:1}&amp;month={R:2}&amp;day={R:3}&amp;page={R:4}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 9">
                <match url="^users/(\d+)/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=users&amp;a=index&amp;uid={R:1}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 10">
                <match url="^users/(\d+)/article/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=users&amp;a=index&amp;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&amp;a=index&amp;uid={R:1}&amp;page={R:2}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 12">
                <match url="^users/(\d+)/(\w+)/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=users&amp;a={R:2}&amp;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&amp;a={R:2}&amp;uid={R:1}&amp;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&amp;a=index&amp;size={R:1}&amp;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&amp;a={R:1}" appendQueryString="false" />
            </rule>
            <rule name="已导入的规则 17">
                <match url="^(\w+)/(\d+)/$" ignoreCase="false" />
                <action type="Rewrite" url="index.php?m=index&amp;a={R:1}&amp;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>


)`

取消 提交回答
全部回答(0)
相关问答

5

回答

Spark 【问答合集】

社区小助手 2019-05-29 14:13:40 129560浏览量 回答数 5

28

回答

钉钉开放平台“常见问题常见问题常见问题“重要请关注

竹梅 2015-12-03 00:39:14 96025浏览量 回答数 28

5

回答

设置跨域资源共享CORS并使用JS表单PostObject直接上传到OSS

wood23 2015-02-12 08:11:09 41493浏览量 回答数 5

3

回答

Logstash采集文件名称以及自定义格式的日志文件采集

Snorlax 2019-06-18 11:51:28 115818浏览量 回答数 3

1

回答

出现这个问题求解决This XML file does not appear to have any

淘合肥 2017-04-08 21:07:00 99941浏览量 回答数 1

43

回答

【精品问答集锦】Python热门问题

小六码奴 2019-05-30 15:27:34 142901浏览量 回答数 43

21

回答

【Java学习全家桶】1460道Java热门问题,阿里百位技术专家答疑解惑

管理贝贝 2018-05-31 13:57:45 48889浏览量 回答数 21

24

回答

【精品问答】python技术1000问(1)

问问小秘 2019-11-15 13:25:00 483486浏览量 回答数 24

19

回答

云数据库RDS MySQL版【问答合集】

我是管理员 2018-08-03 15:10:37 53558浏览量 回答数 19

5

回答

Nginx配置及Rewrite规则

thisisdong 2013-05-05 08:28:39 42533浏览量 回答数 5
+关注
0
文章
1
问答
问答排行榜
最热
最新
相关电子书
更多
JS零基础入门教程(上册)
立即下载
性能优化方法论
立即下载
手把手学习日志服务SLS,云启实验室实战指南
立即下载