當前位置:開發者網絡 >> 技術教程 >> ASP教程 >> ASP技巧 >> 內容
精彩推薦
分類最新教程
分類熱點教程
    
多域名一網站時如果返回最原來的域名
作者:未知
日期:2003-04-17
人氣:
投稿:Andy.m(轉貼)
來源:未知
字體:
收藏:加入瀏覽器收藏
以下正文:
<%
host=lcase(request.servervariables("HTTP_HOST"))
SELECT CASE host
' Just change the CASE to your domains
CASE "www.designbliss.com.au"
' Below is the redirect command
response.redirect "au/"
CASE "designbliss.com.au"
response.redirect "au/"
CASE "e.free-bliss.com"
response.redirect "front.asp"
CASE "www.website-design-australia.com"
response.redirect "wda/"
CASE "website-design-australia.com"
response.redirect "wda/"
'We use CASE ELSE to fix any other requests
CASE ELSE
response.redirect "front.asp"
END SELECT
%>
相關文章: