• <source id="hslnr"></source><video id="hslnr"></video>

    <u id="hslnr"><wbr id="hslnr"><ins id="hslnr"></ins></wbr></u>
  • <acronym id="hslnr"></acronym>
    <b id="hslnr"></b>
    <video id="hslnr"><sub id="hslnr"><output id="hslnr"></output></sub></video>
    1. <rp id="hslnr"></rp>
    2. <u id="hslnr"><wbr id="hslnr"><ins id="hslnr"></ins></wbr></u>
    3. <u id="hslnr"></u><blockquote id="hslnr"></blockquote>

      <source id="hslnr"><sub id="hslnr"></sub></source>

      PbootCMS偽靜態配置-IIS7+環境-Apache環境-Nginx環境

      日期:2020年09月03日 /人氣: /來源:本站原創

      PbootCMS程序在IIS7+環境-Apache環境-Nginx環境中偽靜態配置方法。

      一、IIS7+環境

      #1.X版本使用如下規則:
      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
          <system.webServer>
              <rewrite>
                  <rules>
                       <rule name="reIndex" stopProcessing="true">
                          <match url="^(.*)$" ignoreCase="true" />
                          <conditions logicalGrouping="MatchAll">
                              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                              <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                          </conditions>
                          <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
                      </rule>
                  </rules>
              </rewrite>
          </system.webServer>
      </configuration>

      #2.X+版本使用如下規則:
      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
          <system.webServer>
              <rewrite>
                  <rules>
                       <rule name="reIndex" stopProcessing="true">
                          <match url="^(.*)$" ignoreCase="true" />
                          <conditions logicalGrouping="MatchAll">
                              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                              <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                          </conditions>
                          <action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" />
                      </rule>
                  </rules>
              </rewrite>
          </system.webServer>
      </configuration>

      二、Apache環境

      #1.X版本使用如下規則:
      <IfModule mod_rewrite.c>
        Options +FollowSymlinks
        RewriteEngine On
       
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
       
        #如果頁面出現"No input file specified." 請注釋第一條,啟用第二條
        RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
        #RewriteRule ^(.*)$ index.php [E=PATH_INFO:$1,QSA,PT,L]  
       
      </IfModule>

      #2.X+版本使用如下規則:
      <IfModule mod_rewrite.c>
        Options +FollowSymlinks
        RewriteEngine On
       
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
       
        RewriteRule ^(.*)$ index.php?p=$1 [QSA,PT,L]

      </IfModule>

      三、Nginx環境


      #1.X版本使用如下規則:
      location / {
          if (!-e $request_filename){
              rewrite ^/(.*)$ /index.php/$1 last;
           }
      }

      #2.X+版本使用如下規則:
      location / {
          if (!-e $request_filename){
              rewrite ^/(.*)$ /index.php?p=$1 last;
           }
      }

      作者:chuangxinkeji

      上一頁: win7系統電腦藍屏代碼0X000000F4的處理和預防方法   下一頁: 快消品二維碼掃碼領紅包促銷方案--營銷新利器一物一碼
      久久av无码网站_亚洲精品尤物在线观看_国产av天堂电影_在线观看的免费无码黄网站
    4. <source id="hslnr"></source><video id="hslnr"></video>

      <u id="hslnr"><wbr id="hslnr"><ins id="hslnr"></ins></wbr></u>
    5. <acronym id="hslnr"></acronym>
      <b id="hslnr"></b>
      <video id="hslnr"><sub id="hslnr"><output id="hslnr"></output></sub></video>
      1. <rp id="hslnr"></rp>
      2. <u id="hslnr"><wbr id="hslnr"><ins id="hslnr"></ins></wbr></u>
      3. <u id="hslnr"></u><blockquote id="hslnr"></blockquote>

        <source id="hslnr"><sub id="hslnr"></sub></source>