綁定多個(gè)域名,怎么實(shí)現(xiàn)指定子目錄跳轉(zhuǎn)
[求助]綁定多個(gè)域名,怎么實(shí)現(xiàn)指定子目錄跳轉(zhuǎn)我有一個(gè)空間綁定多個(gè)域名,希望實(shí)現(xiàn)如下跳轉(zhuǎn)方式域名www1 、www2 和 www3這三個(gè)域名,都同時(shí)綁定在根目錄里,希望在訪問(wèn)這個(gè)根目錄里的文件inde
[求助]綁定多個(gè)域名,怎么實(shí)現(xiàn)指定子目錄跳轉(zhuǎn)
我有一個(gè)空間綁定多個(gè)域名,希望實(shí)現(xiàn)如下跳轉(zhuǎn)方式
域名www1 、www2 和 www3這三個(gè)域名,都同時(shí)綁定在根目錄里,希望在訪問(wèn)這個(gè)根目錄里的文件index.asp 里寫(xiě)個(gè)設(shè)置
可以實(shí)現(xiàn)
www1在訪問(wèn)index.asp 時(shí)跳轉(zhuǎn)到訪問(wèn)目錄mmm1
www2在訪問(wèn)index.asp 時(shí)跳轉(zhuǎn)到訪問(wèn)目錄mmm2
www3在訪問(wèn)index.asp 時(shí)跳轉(zhuǎn)到訪問(wèn)目錄mmm4
想實(shí)現(xiàn)這樣的效果應(yīng)該怎么寫(xiě),那位高手,幫個(gè)忙,萬(wàn)分感謝
注意“不想用域名解析的方式實(shí)現(xiàn),只想用設(shè)置首頁(yè)文件index.asp 或index.html 的方式實(shí)現(xiàn)
[此貼子已經(jīng)被作者于2009-2-26 18:02:04編輯過(guò)]
評(píng)分
舉報(bào) 使用道具 TOP
發(fā)表于: 2009-02-27 16:41:42 - IP:*.*.*.*
只看該用戶 大 中 小 沙發(fā)
,你可以在里面加入點(diǎn)鏈接試試
[url=http://www.7idc.cn][color=
red]特價(jià)學(xué)生主機(jī) 188元/年,300
評(píng)分 M 空間送200M 郵局[/color][/url] 舉報(bào) 使用道具 TOP
: 2009-03-01 18:58:46 - IP:*.*.*.*
大 中 小 板凳
egExp
,do while aspStart>aspEnd 1
Response.write Mid(content,aspEnd,aspStart-aspEnd-2) aspEnd=inStr(aspStart,content,">") 2
Execute(re.replace(Mid(content,aspStart,aspEnd-aspStart-2),"Response.Write "))
aspStart=inStr(aspEnd,content,"<") 2
loop
Response.write Mid(content,aspEnd)
set re=nothing
End Function
include(""&filename&"")
>
將上面的代碼放在根目錄,命名為:index.asp
然后將各個(gè)站點(diǎn)的首頁(yè)改名為:abcd.htm ;abcd2.htm ;等。。
當(dāng)訪問(wèn)者訪問(wèn) abcd.com 時(shí),自動(dòng)加載:abcd.htm 的代碼。 當(dāng)訪問(wèn)者訪問(wèn) abcd2.com 時(shí),自動(dòng)加載:abcd2.htm 的代碼。