1
我有以下web.config。我认为我的这个没什么问题,但是我不能把它改写成索引。我也试过url =“index.php”没有领先/IIS忽略重写规则
我的web.config有什么问题吗?或者是否还有其他可能是错误的(如IIS设置) - 如果是这样,是否可以检查而无需访问服务器(除了FTP到页面)?
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="rewrite">
<section name="rewriteMaps" overrideModeDefault="Allow" />
<section name="rules" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>
<system.webServer>
<rewrite>
<rules>
<rule name="NWCMS" stopProcessing="true">
<match url=".*" />
<action type="Rewrite" url="/index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>