本教程適合新云網站內容管理系統 v3.1.0.1231 正式版(2008.1.28) 沒在其他版本上測試過,不保證其他版本按如下操作可行。
=====================需要下載的組件===============================
Isapi_Rwf偽靜態組件
提供一個下載地址如下(這個是dv的,但用在新云上也是一樣的,反正我是用這個。)
http://p.dvbbs.net/download/dv_iis_url_rewriter.rar
如果你用的是虛擬主機,就不用下載了,問下客服空間是否支持偽靜態,不支持的話下面的內容就不用看了。
=====================需要修改的文件conn.asp==========================
conn.asp 找到13行如下代碼
Const IsURLRewrite = True
改為一下代碼(這個是系統開啟偽靜態邏輯)
Const IsURLRewrite = False
=====================需要修改的文件inc/classmenu.asp=================
inc/classmenu.asp 找到'496行如下代碼
SpecialPath = ChannelPath & "special.asp?sid=" & Rs("SpecialID")
修改為以下代碼(這個是加載菜單的偽靜態鏈接地址,新云原版沒有這個功能)
If IsURLRewrite Then
SpecialPath = ChannelPath & "special_1_" & rs("SpecialID") & HtmlExtName
Else
SpecialPath = ChannelPath & "special.asp?sid=" & Rs("SpecialID")
End If
=====================完整的偽規則=====================================
把下列代碼拷貝放到httpd.ini文件內代碼的后面。
httpd.ini在偽靜態組件的安裝目錄內,路徑一般為C:/Program Files/Helicon/ISAPI_Rewrite
如果你用的不是自己的服務器,那么加載這個規則就必須請服務器管理員幫你操作,除非你有能耐把服務器黑了,并拿到這個權限。
一般空間服務商都會幫你加載的,聯系一下客服說明原因,起碼我經常這樣做。
#新云規則代碼開始
#文章頻道(這個文章的規則包含了專題規則,是目前網上最完整的文章偽靜態規則)
RewriteRule /article/(/d+)/.html /article/show/.asp/?id=$1 [N,I]
RewriteRule /article/(/d+)_(/d+)/.html /article/show/.asp/?id=$1&page=$2 [N,I]
RewriteRule /article/list_(/d+)_(/d+)/.html /article/list/.asp/?page=$1&classid=$2 [N,I]
RewriteRule /article/special_(/d+)_(/d+)/.html /article/special/.asp/?page=$1&sid=$2 [N,I]
#下載頻道
RewriteRule /soft/(/d+)/.html /soft/show/.asp/?id=$1 [N,I]
RewriteRule /soft/down_(/d+)/.html /soft/softdown/.asp/?softid=$1 [N,I]
RewriteRule /soft/dl(/d+)/.html /soft/softdown/.asp/?softid=$1 [N,I]
RewriteRule /soft/list_(/d+)_(/d+)/.html /soft/list/.asp/?page=$1&classid=$2 [N,I]
#動畫頻道
RewriteRule /flash/(/d+)/.html /flash/show/.asp/?id=$1 [N,I]
RewriteRule /flash/list_(/d+)_(/d+)/.html /flash/list/.asp/?page=$1&classid=$2 [N,I]
新聞熱點
疑難解答