跳到主要内容
帮助中心

新闻公告

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

香港虚拟主机苹果CMS v10 伪静态规则

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]


本文链接
返回本栏目
工单