跳到主要内容
帮助中心

新闻公告

产品更新、运营公告与行业观察
一手消息,第一时间同步给你

xyhcms 行云海CMS在iis下的伪静态web.config 规则

xyhcms 行云海CMS在iis下的伪静态 web.config 文件必须是utf8格式,内容如下:


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

            </rules>
        </rewrite>    
        <!--end-rewrite-->    
    </system.webServer>
 </location>
</configuration>

本文链接
返回本栏目
工单