2.3.2LINUX安装宝塔面板如何设置伪静态
宝塔带有设置伪静态写入地方,但是规则需要自己写
2.3.2LINUX安装宝塔面板如何设置伪静态
宝塔带有设置伪静态写入地方,但是规则需要自己写
如果是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>阿斯顿撒旦
设置了之后后台还是显示不支持啊
设置了之后后台还是显示不支持啊大哥