伪静态配置好了怎么不生效呢?

问:<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>    
                <rule name="listInfos1">
                    <match url="^zhuce/index.html(.*)$" />
                    <action type="Rewrite" url="/e/action/ListInfo.php\\?classid=1{R:1}" />
                </rule>
                <rule name="listInfos2">
                    <match url="^daizhang/index.html(.*)$" />
                    <action type="Rewrite" url="/e/action/ListInfo.php\\?classid=2{R:1}" />
                </rule>

            </rules>
        </rewrite>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
    </system.webServer>
</configuration>

web.config 放在根目录了,怎么访问 http://huazhen.designor.club/zhuce/   不跳转,提示 :

   

HTTP 错误 403.14 – ForbiddenWeb 服务器被配置为不列出此目录的内容。请问是我哪里设置错误?
,伪静态配置好了怎么不生效呢?

答:您好,

您规则匹配了完整路径,访问时就必须访问http://huazhen.designor.club/zhuce/index.html 才行,如要直接访问目录,则删除规则中的index.html,您可以删除后测试看下,非常感谢您长期对我司的支持!

问:对头,我以为可以活力index.html,是默认的!

谢谢!

答:您好,

不客气,非常感谢您长期对我司的支持!

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn
赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 伪静态配置好了怎么不生效呢?

登录

找回密码

注册