换了服务器为IIS环境的后,伪静态规则失效了

创建时间:2023-09-15 20:16发布者:招投标资质网点击数:750
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="." allowOverride="false" inheritInChildApplications="false">
<system.webServer>
<rewrite>
<rules>
<rule name="index" stopProcessing="true">
<match url="^index.html$" />
<action type="Rewrite" url="index.php" />
</rule>
<rule name="sitemap" stopProcessing="true">
<match url="^sitemap.xml$" />
<action type="Rewrite" url="sitemap.php" />
</rule>
<rule name="common" stopProcessing="true">
<match url="^([^?]*)" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="include/route.php?route={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
</system.web>
</location>
</configuration>

英文版/en/的 点栏目链接和内页链接全都无效并跳转回中文版
回答 我也遇到这个问题(0)
DouPHP官方技术2023-09-21 09:55回答
等我们后续升级,另外建议使用APACHE,IIS部署PHP不推荐,虽然可以用,但无论效率还是使用方便都不如APACHE
有用(0) 没用(0)