切换风格

默认 晚霞 雪山 粉色心情 伦敦 花卉 绿野仙踪 加州 白云 星空 薰衣草 城市 简约黑色 简约米色 龙珠
2.3.2LINUX安装宝塔面板如何设置伪静态
 6206     3
发表于 2020-1-12 |

2.3.2LINUX安装宝塔面板如何设置伪静态

宝塔带有设置伪静态写入地方,但是规则需要自己写




发表于 2020-1-13 |

如果是Nginx填入

if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
}

如果是Apache填入

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>


如果是IIS填入

<?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?s={R:1}" />
  </rule>
  </rules>
 </rewrite>
        <directoryBrowse enabled="false" />
                <security>
          <requestFiltering allowDoubleEscaping="True" />
        </security>

    </system.webServer>
    
 </configuration>

阿斯顿撒旦

发表于 2020-2-6 |

设置了之后后台还是显示不支持啊

发表于 2020-2-6 |

设置了之后后台还是显示不支持啊大哥

GMT+8, 2024-09-08 10:48:03 运行耗时 0.0086 秒.

Powered by HYBBS 2.3.4

© 2016-2019 HYBBS

返回顶部