联系官方销售客服

1835022288

028-61286886

分享经验 版主:论坛审计组
iis环境下伪静态规则 ,代码亲测可用
类型:迅睿CMS 更新时间:2022-04-02 12:33:13 iis伪静态

iis环境下伪静态规则 ,环境:microsoft-iis/10.0  apa+myqsl 主机商提供的代码,亲测可用

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
              <rule name="Imported Rule 1" stopProcessing="true">
                    <match url=".(js|ico|gif|jpe?g|bmp|png|css)$" negate="true" />
                    <conditions logicalGrouping="MatchAll">
                        <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="/index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>