多個綁定多域名的ASP代碼_ASP教程
推薦:ASP錯誤代碼說明錯誤代碼 錯誤消息 說明 ASP0100 Out of memory 內(nèi)存不足(不能分配要求的內(nèi)存 ASP0101 Unexpected error 意外錯誤 ASP0102 Expecting string input 缺少字符串輸入 ASP0103 Expe
第一種方法:
如果有有一個ASP空間,而你又想放置多個多個站點(diǎn),這些代碼可以幫到你:
以下為引用的內(nèi)容: 第一個 <%if Request.ServerVariables("SERVER_NAME")="www.netbei.com" then response.redirect "zkj" else response.redirect "i.htm" end if%> 第二個 第三個 第四個 |
以下為引用的內(nèi)容: 第二種方法:
<%
dim domainname,result
domainname=Request.ServerVariables("SERVER_NAME")
result=right(domainname,12)
if result="my.netbei.com" then
%>
<!--#include file=mynetbei.asp -->
<%
Elseif result="rtisancn.com" then
%>
<!--#include file=artisan.asp -->
<%
Elseif result="gn.netbei.com" then
%>
<!--#include file=web.asp -->
<%
Elseif result=".forwest.com" then
%>
<!--#include file=forwest_com.asp -->
<%
Else
%>
<!--#include file=netbei.asp -->
<%
End if
%>
請作者聯(lián)系本站,及時附注您的姓名。聯(lián)系郵箱:mb5u#vip.qq.com(把#改為@)。
分享:ASP基礎(chǔ)教程之ASP程序?qū)ookie的處理cookie常用來對用戶進(jìn)行識別。 實(shí)例: 以下為引用的內(nèi)容: <% dim numvisits response.cookies("NumVisits").Expires=da
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁模板:ASP內(nèi)建對象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個小技巧
- eWebEditor v3.8 列目錄
- ASP無組件分頁實(shí)現(xiàn)思路及代碼
- 相關(guān)鏈接:
- 教程說明:
ASP教程-多個綁定多域名的ASP代碼。