岛国av无码人妻水多a片_性饥渴女邻居4伦理hd_实战实体娃娃大片视频大全_男人撕开奶罩揉吮奶头视频_日韩欧美成人免费观看_少妇久久久久久被弄到高潮_久久久久精品国产成人jk漫画_亚洲日本欧美日韩高观看_国产成人精品男人的天堂网站

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

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

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

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

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

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

 

Discuz! X3.1 VPS主機(jī)的偽靜態(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

 

# 自定義錯(cuò)誤頁(yè)面

 

ErrorDocument 404 /404/index.html

 

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

 

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

 

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

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

 

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

# 首先復(fù)制多個(gè) RewriteCond 項(xiàng),將域名改好 除了最后一項(xiàng),其余的 RewriteCond 項(xiàng)最后都要加個(gè)參數(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

# 主題分類(lèi)與分類(lèi)信息偽靜態(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

#門(mén)戶(hù)專(zhuān)題頁(yè)偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

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

#門(mén)戶(hù)文章頁(yè)偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

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

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

RewriteCond %{QUERY_STRING} ^(.*)$

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

#論壇主題內(nèi)容頁(yè)偽靜態(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

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

RewriteCond %{QUERY_STRING} ^(.*)$

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

#用戶(hù)個(gè)人主頁(yè)偽靜態(tài)

RewriteCond %{QUERY_STRING} ^(.*)$

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

#用戶(hù)日志內(nèi)容頁(yè)偽靜態(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 頁(yè)偽靜態(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ù)器 長(zhǎng)沙網(wǎng)站建設(shè) 深圳百度愛(ài)采購(gòu)?fù)茝V 深圳萬(wàn)網(wǎng)空間 深圳做網(wǎng)站 響應(yīng)式網(wǎng)站建設(shè) 寶安做網(wǎng)站 深圳設(shè)計(jì)網(wǎng)站 阿里云ICP備案 寶安網(wǎng)站建設(shè) 南山網(wǎng)站建設(shè) 深圳營(yíng)銷(xiāo)型網(wǎng)站建設(shè) 深圳品牌網(wǎng)站建設(shè) 深圳微信網(wǎng)站建設(shè) 西鄉(xiāng)網(wǎng)站建設(shè) 外貿(mào)網(wǎng)站建設(shè)
深圳網(wǎng)站建設(shè)
13723486509