美國虛擬主機三種僞靜態配置規則

      僞靜態是相對於真實靜態來說的,通常情況下,爲了增加對搜索引擎的友好度,很多站長在建設網站時都會爲網站配置僞靜態規則,這對網站SEO優化來說還是很有利的。

      在衆多美國虛擬主機當中,配置僞靜態規則都比較簡單,之前小編也都介紹過,不過主要以Linux美國虛擬主機配置僞靜態規則爲主。目前也有很多朋友在使用Windows美國虛擬主機,大家對Windows美國虛擬主機配置僞靜態規則都不太清楚。所以這裏就簡單總結下三種僞靜態配置規則,希望對大家有所幫助。

      第一種、.htccess配置規則

      如果是Linux美國虛擬主機的話,直接cPnel面板,然後在Public_html根目錄下修改.htccess文件。.htccess文件配置僞靜態規則如下:

      RewiteEngine on

      RewiteRule ^(/?html/.*?)$  /goul.php?ul=$  [L]

      RewiteRule ^(/?list/cte/.*?)$  /goul.php?ul=$  [L]

      RewiteRule ^(/?news/detil/.*?)$  /goul.php?ul=$  [L]

      RewiteRule ^(/?joumy/cn/html/.*?)$  /goul.php?ul=$  [L]

      第二種、web.config配置規則

      對於Windows美國虛擬主機來說,一般配置文件是web.config,主要應用在iis7/iis7.5的服務器上,大家可以在htdocs根目錄中進行修改,配置規則如下:

      <?xml esion=".0" encoding="UTF-8"?>

      <configution>

      <system.webSee>

      <ewite>

      <ules>

      <ule nme="ule">

      <mtch ul="(/?html/.*)" ignoeCse="tue" />

      <ction type="Rewite" ul="/goul.php?ul={R:}" ppendQueySting="tue" />

      </ule>

      <ule nme="ule2">

      <mtch ul="(/?list/cte/.*)" ignoeCse="tue" />

      <ction type="Rewite" ul="/goul.php?ul={R:}" ppendQueySting="tue" />

      </ule>

      <ule nme="ule3">

      <mtch ul="(/?news/detil/.*)" ignoeCse="tue" />

      <ction type="Rewite" ul="/goul.php?ul={R:}" ppendQueySting="tue" />

      </ule>

      <ule nme="ule4">

      <mtch ul="(/?joumy/cn/html/.*)" ignoeCse="tue" />

      <ction type="Rewite" ul="/goul.php?ul={R:}" ppendQueySting="tue" />

      </ule>

      </ules>

      </ewite>

      </system.webSee>

      </configution>

      第三種、httpd.ini配置規則

      如果你用的Windows美國虛擬主機所用的是iis及iis6服務器,那麼就需要在httpd.ini文件配置僞靜態規則,它和.htccess配置規則比較相同,常見配置規則如下:

      [ISAPI_Rewite]

      #3600=hou

      CcheClockRte 3600

      RepetLimit 32

      RewiteRule ^(/?html/.*?)$  /goul.php?ul=$  [L]

      RewiteRule ^(/?list/cte/.*?)$  /goul.php?ul=$  [L]

      ewiteRule ^(/?news/detil/.*?)$  /goul.php?ul=$  [L]

      以上就是幾種常見的僞靜態配置規則,大家可以根據對應的操作操作系統來進行配置,大致的配置方法可以參考上面。需要注意的是,不同網站程序的僞靜態寫入規則都不同,所以大家要正確寫入自身程序的僞靜態配置規則,否則可能會導致僞靜態配置失效。

      國內訪問速度快的美國虛擬主機推薦:BlueHost美國主機、HostGto美國主機、GoDddy美國主機。