国产欧美日韩高清专区手机版_国产AⅤ精品一区二区三区久久_中国少妇内射XXXHD免费_在线观看视频久最新av_亚洲av免费在线观看_我把护士日出水了视频_精品国产凹凸成AV人网站_女人被老外躁得好爽免费视频_国产精品制服丝袜无码

15年
網(wǎng)站建設(shè)經(jīng)驗
佳速互聯(lián)
佳速觀點

當(dāng)前位置:首頁 >> 常見問題 >> 阿里云輕云服務(wù)器,discuzx3.1如何設(shè)置偽靜態(tài)?

阿里云輕云服務(wù)器,discuzx3.1如何設(shè)置偽靜態(tài)?

編輯:佳速互聯(lián)   來源:佳速互聯(lián)   瀏覽量:正在讀取   時間:2014-06-27

客服溝通也沒弄明白,我是輕服務(wù)器,win操作系統(tǒng)。在DZ論壇下載了一個web.config文件,基本所有鏈接做到了靜態(tài),但個別鏈接會出現(xiàn)404錯誤。 !!ZNemXct

后面佳速互聯(lián)技術(shù)幫我解決了

 

Discuz! X3.1 VPS主機的偽靜態(tài)httpd.conf規(guī)則設(shè)置:

(1)服務(wù)器系統(tǒng)及 PHP:WINNT / PHP v5.X.X 服務(wù)器軟件:Microsoft-IIS/6.0

httpd.conf規(guī)則設(shè)置:

RegistrationName= wlqcwin

RegistrationCode= 2EAD-35GH-66NN-ZYBA

 

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

 

# 自定義錯誤頁面

 

ErrorDocument 404 /404/index.html

 

# 默認(rèn)包含了301設(shè)置,此設(shè)置情況下sxbbs.org/aa.htm 會301跳至www.sxbbs.org/aa.htm,將sxbbs.org替換為您自己的域名就能實現(xiàn)自己的域名的301

 

# 第一條表示要做跳轉(zhuǎn)的域名,第二條表示要跳轉(zhuǎn)到的域名

 

RewriteCond %{HTTP:Host} ^sxbbs.org$

RewriteRule (.*) http://www.sxbbs.org$1 [NC,R=301]

 

# 多個域名做跳轉(zhuǎn)的方法:

# 首先復(fù)制多個 RewriteCond 項,將域名改好 除了最后一項,其余的 RewriteCond 項最后都要加個參數(shù) [OR]即可。

 

RewriteCond %{HTTP:Host} ^0722pp.com$[OR]

RewriteCond %{HTTP:Host} ^www.0722pp.com$[OR]

RewriteCond %{HTTP:Host} ^suiw.net$[OR]

RewriteCond %{HTTP:Host} ^www.suiw.net$[OR]

RewriteCond %{HTTP:Host} ^szggmm.com$[OR]

RewriteCond %{HTTP:Host} ^www.szggmm.com$[OR]

RewriteCond %{HTTP:Host} ^shuizhidu.cn$[OR]

RewriteCond %{HTTP:Host} ^www.shuizhidu.cn$[OR]

RewriteCond %{HTTP:Host} ^hao0722.cn$[OR]

RewriteCond %{HTTP:Host} ^www.hao0722.cn$[OR]

RewriteCond %{HTTP:Host} ^hbsztv.cn$[OR]

RewriteCond %{HTTP:Host} ^www.hbsztv.cn$

RewriteRule (.*) http://www.sxbbs.org$1 [NC,R=301]

 

# Protect httpd.ini and httpd.parse.errors files

# from accessing through HTTP

# Discuzx3.1

# 主題分類與分類信息偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/type-(w+)-([0-9]+)-([0-9]+).html(?(.*))*$ $1/forum.php?mod=forumdisplay&fid=$2&typeid=$3&typeid=$3&filter=typeid&page=$4

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/sort-(w+)-([0-9]+)-([0-9]+).html(?(.*))*$ $1/forum.php?mod=forumdisplay&fid=$2&sortid=$3&sortid=$3&filter=sortid&page=$4

#門戶專題頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/topic-(.+).html(?(.*))*$ $1/portal.php?mod=topic&topic=$2&$4

#門戶文章頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/article-([0-9]+)-([0-9]+).html(?(.*))*$ $1/portal.php?mod=view&aid=$2&page=$3&$5

#論壇主題列表頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/forum-(w+)-([0-9]+).html(?(.*))*$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3&$5

#論壇主題內(nèi)容頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html(?(.*))*$ $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6

#群組主題列表頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/group-([0-9]+)-([0-9]+).html(?(.*))*$ $1/forum.php?mod=group&fid=$2&page=$3&$5

#用戶個人主頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/space-(username|uid)-(.+).html(?(.*))*$ $1/home.php?mod=space&$2=$3&$5

#用戶日志內(nèi)容頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+).html(?(.*))*$ $1/home.php?mod=space&uid=$2&do=blog&id=$3&$5

#論壇 Archiver 頁偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/(fid|tid)-([0-9]+).html(?(.*))*$ $1/index.php?action=$2&value=$3&$5

#插件偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_-]+).html(?(.*))*$ $1/plugin.php?id=$2:$3&$5



友情鏈接: 阿里云小店 找商網(wǎng) 阿里云金牌合作伙伴 深圳阿里云服務(wù)器 長沙網(wǎng)站建設(shè) 深圳百度愛采購?fù)茝V 深圳萬網(wǎng)空間 深圳做網(wǎng)站 響應(yīng)式網(wǎng)站建設(shè) 寶安做網(wǎng)站 深圳設(shè)計網(wǎng)站 阿里云ICP備案 寶安網(wǎng)站建設(shè) 南山網(wǎng)站建設(shè) 深圳營銷型網(wǎng)站建設(shè) 深圳品牌網(wǎng)站建設(shè) 深圳微信網(wǎng)站建設(shè) 西鄉(xiāng)網(wǎng)站建設(shè) 外貿(mào)網(wǎng)站建設(shè)
深圳網(wǎng)站建設(shè)
13723486509