<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                X1因為是基于thinkphp開發的,所以偽靜態的設置就是thinkphp的設置 其實我們這里X1設置偽靜態也就是為了隱藏index.php而設置,其他的url美化路徑,修改后綴如html等都是通過路由來設置了 偽靜態配置好后,這里才可以設置,否則網站打開會出現錯誤,或者永遠是首頁 ![](https://img.kancloud.cn/e9/6e/e96e8dcc8801e7a96a90a8359f0200fd_705x128.png) 不同的web服務器設置不同,以下列舉常用的搭配設置,其他的略去不提 我們常用的web服務器:Apache、IIS、nginx三種,應該是目前最多的 一般就是這幾種搭配 linux+apache 、linux+nginx、win+iis、win+apache? win+nginx都很少了。 linux+apache環境,直接設置.htaccess, 用thinkphp官方提供的默認即可,如下: ~~~ <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> ~~~ win+apache環境??比如phpstudy這種套件配置的環境,也是設置.htaccess但是有些特別,如果是全新安裝,那就不用配置,直接使用x1里默認的即可 ~~~ <IfModule?mod_rewrite.c> ??Options?+FollowSymlinks?-Multiviews ??RewriteEngine?On ??RewriteCond?%{REQUEST_FILENAME}?!-d ??RewriteCond?%{REQUEST_FILENAME}?!-f ??RewriteRule?^(.*)$?index.php?[L,E=PATH_INFO:$1] </IfModule> ~~~ Linux+Nginx環境?也是直接用thinkphp官方提供的配置即可,nginx是在站點的conf里配置,如果是虛擬主機,在vhost中配置xxx.conf然后include xxx.conf,當然寫入到具體站點的conf里也是可以的 ~~~ location?/?{ ???if?(!-e?$request_filename)?{ ???rewrite??^(.*)$??/index.php?s=/$1??last; ???break; ????} ?} ~~~ Win+IIS環境??IIS可能有些人覺得是最麻煩的,其實直接復制代碼也很簡單,IIS7.5以上配置web.config即可。當然前提是服務器需要安裝url\_rewrite web.config如果沒有其他配置,直接復制下面完整的代碼到web.config就可以了,如果web.config有其他的配置,需要注意rules的嵌套。IIS7以下的環境就忽略了,建議升級系統吧。 ~~~ <?xml?version="1.0"?encoding="UTF-8"?>?? <configuration>?? ??<system.webServer>?? ????<rewrite>?? ??????<rules>?? ????????<rule?name="WPurls"?enabled="true"?stopProcessing="true">?? ??????????<match?url=".*"?/>?? ??????????<conditions?logicalGrouping="MatchAll">?? ????????????<add?input="{REQUEST_FILENAME}"?matchType="IsFile"?negate="true"?/>?? ????????????<add?input="{REQUEST_FILENAME}"?matchType="IsDirectory"?negate="true"?/>?? ??????????</conditions>?? ??????????<action?type="Rewrite"?url="index.php/{R:0}"?/>?? ????????</rule>?? ??????</rules>?? ????</rewrite>?? ??</system.webServer>?? </configuration> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看