<ruby id="h22x2"><i id="h22x2"></i></ruby>

    <track id="h22x2"><em id="h22x2"></em></track>
    <track id="h22x2"></track>

    1. <ol id="h22x2"></ol>

      <legend id="h22x2"></legend>

          <acronym id="h22x2"></acronym>
            首頁 > 運營 > 幫助中心 > 正文

            偽靜態在phpWind中的應用

            2019-10-17 22:51:21
            字體:
            來源:轉載
            供稿:網友
             
            偽靜態有什么用?
            最主要的就是迎合搜索引擎方便搜索引擎蜘蛛(Spider)來抓取網頁上的相關內容!
            方便用戶訪問網站 一個好網頁如果是動態的用戶在相互傳播時感覺對方信任度不會高,但一看一個靜態頁相對用戶對網頁的信任度就高點而且偽靜態的后綴方式基本雷同 一看就知道是偽靜態還是真的靜態網頁!
            偽靜態在phpWind的應用
            如果您租用虛擬主機,請確定空間支持偽靜態模式,最常用的是.htaccess 針對apache的WEB端配置。如果您用的是獨立主機,那么可以在服務器上配置支持偽靜態模式。先說虛擬空間默認支持.htaccess自定義偽靜態(一般是linux虛擬機).htaccess的配置,把以下代碼保存為.htaccess 傳到服務器根目錄即可.
            RewriteEngine On
            RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
            RewriteRule ^(.*)simple/([t|f].+).html$ /simple/index.php?$2.html
            獨立服務器者,若是win2003+iis,那您需要安裝一個組件叫:ISAPI_Rewrite,安裝完后編輯httpd.ini文件,內容如下:
            [ISAPI_Rewrite]
            # Defend your computer from some worm attacks
            RewriteRule .*(?:global.asa|default.ida|root.exe|..).* . [F,I,O]
            RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
            RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
            #Code By Josh @ PHPWind 2008-10-08 ?([a-zA-Z]+)
            如果是老版本的,請把
            RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
            這條規則改為
            RewriteRule ^(.*)-htm-(.*)$ $1/.php?/$2即可,
            ISAPI_Rewrite安裝教程請看:PW論壇IIS下設置靜態目錄的教程
            發表評論 共有條評論
            用戶名: 密碼:
            驗證碼: 匿名發表
            a级情欲片在线观看免费
              <ruby id="h22x2"><i id="h22x2"></i></ruby>

              <track id="h22x2"><em id="h22x2"></em></track>
              <track id="h22x2"></track>

              1. <ol id="h22x2"></ol>

                <legend id="h22x2"></legend>

                    <acronym id="h22x2"></acronym>