回复详情

admin

2020-1-13 0

如果是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>

阿斯顿撒旦

icgk1jx4ebo0

2020-1-13

好的

加载更多

登陆后才可发表内容