苹果CMS v10 伪静态规则
    文章作者:恒爱网络 阅读次数:1969 发布时间:2022-2-18

    windows 下的 web.config 规则内容:

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

       

    linux 服务器下的规则 .htaccess 内容:


    Options +FollowSymlinks -Multiviews
    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]