问:<?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,是默认的!
谢谢!
答:您好,
不客气,非常感谢您长期对我司的支持!