Loading
0

极致CMS(jizhicms)IIS7/IIS8/IIS10下web.config伪静态规则配置方法

若该文章解决了您的问题,可否收藏+评论+分享呢?
极致CMS/jizhicms程序IIS7/IIS8/IIS10web.config伪静态规则 将如下规则保存到web.config文件中,并放到网站根目录下,如已经存在有web.config文件,则只需要把<rewrite></rewrite>及中间内容复制放到<system.webServer>下面

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="allow_rules" enabled="true" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:https://blog.tag.gg/showinfo-8-36028-0.html
亲爱的:若该文章解决了您的问题,可否收藏+评论+分享呢?
上一篇:IIS7/IIS8/IIS10下常见程序的web.config伪静态规则大全
下一篇:web.config IIS7/IIS8/IIS10下网站只允许某ip访问方法