0
我有以下URL - website.com/ABCDETest+PHP,我每次访问该网站时,我得到404 - 未找到文件或目录。我的web.config是在IIS重写URL为+
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Test" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
</rewrite>
</system.webServer>
有谁碰巧知道为什么我收到了404页,它不重定向到的index.php?
谢谢!这对我有效。 – Ratty