Deprecated: pk_vd_gt_validate(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home2/xzgzscom/public_html/xzgzs.com/wp-content/themes/wordpress-theme-puock-2.8.12/inc/fun/core.php on line 1208
TP伪静态 - 小志工作室 TP伪静态 – 小志工作室

TP伪静态

1:Nginx配置

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

2:Apache

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

3:IIS

<?xml version="1.0" ?>
<rules>
  <rule name="OrgPage_rewrite" 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>

正文完
 0