欧虎科技免实名专注提供香港、美国的免备案虚拟主机和服务器产品!
资讯与帮助
返回资讯

苹果CMS v10 伪静态规则

信息来源:欧虎科技    修改时间:2023/1/29

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]
上一篇:暂无
下一篇:如何查看主机当前运行的PHP版本号
  • 服务热线17005395999
    • 全方位的购买咨询
    • 精准的配置推荐
    • 1对1贴心服务
    • 7*24小时服务热线
  • 投诉建议
    • 购买咨询、建议或投诉,1个工作日响应