国产99视频精品专区,国产欧美精品国产国产专区,中文字幕不卡二区亚洲,日本 在线 视频 中文 有码

<object id="oh9jj"><button id="oh9jj"></button></object>
    1. <dfn id="oh9jj"></dfn>

      Linux環(huán)境虛擬主機(jī)下的偽靜態(tài)設(shè)置

      網(wǎng)站安全 admin 發(fā)布時(shí)間:2014-12-04 07:56:18 瀏覽:

      網(wǎng)站的偽靜態(tài)的作用我們就不在贅述了。下面我們就以Discuz在linux環(huán)境虛擬主機(jī)下的偽靜態(tài)設(shè)置為例來(lái)解說(shuō)如何設(shè)置偽靜態(tài)。

      首先看.htaccess的設(shè)置

      # 將 RewriteEngine 模式打開(kāi)
      RewriteEngine On
      # 修改以下語(yǔ)句中的 /discuz 為你的論壇目錄地址,如果程序放在根目錄中,請(qǐng)將 /discuz 修改為 /
      RewriteBase /
      # Rewrite 系統(tǒng)規(guī)則請(qǐng)勿修改
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
      RewriteCond %{QUERY_STRING} ^(.*)$
      RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

       

      然后把這個(gè)文件上傳到根目錄。

       

      另外在dz的后臺(tái)管理里面也要開(kāi)啟相關(guān)設(shè)置

      相關(guān)推薦
        無(wú)相關(guān)信息

      在線(xiàn)咨詢(xún)

      點(diǎn)擊這里給我發(fā)消息售前咨詢(xún)專(zhuān)員

      點(diǎn)擊這里給我發(fā)消息售后服務(wù)專(zhuān)員

      在線(xiàn)咨詢(xún)

      免費(fèi)通話(huà)

      24h咨詢(xún):0475-2793529


      如您有問(wèn)題,可以咨詢(xún)我們的24H咨詢(xún)電話(huà)!

      免費(fèi)通話(huà)

      微信掃一掃

      微信聯(lián)系
      返回頂部