<p><img src="http://cdn.file.mixinnet.cn/editor/2024-11-09-672f1243426c9.jpg" style="max-width:100%;" contenteditable="false"/><br/><br/>如果你是宝特用户可以在网站站点修改一键配置如图 保存即可<br/></p><p><img src="http://cdn.file.mixinnet.cn/editor/2024-11-09-672f1286c97ff.jpg" alt="360截图20241109154242651.jpg" style="max-width:100%;" contenteditable="false"/><br/></p><p>如果是其他可以配置下面的伪静态规则</p><p>Nginx伪静态 一般命名Nginx.conf</p><pre><code class="Bash">location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}</code></pre><p>Apache伪静态 一般命名.htaccess<br/></p><pre><code class="Bash"><ifmodule mod_rewrite.c=""><IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>
</ifmodule></code></pre><p>IIS伪静态 一般命名web.Config</p><pre><code class="Bash"><?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" ></match>
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" ></add>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" ></add>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" ></add>
</conditions>
<action type="Rewrite" url="index.php/{R:1}" ></action>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration></code></pre>