首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

域名转向判断解决办法

2012-02-03 
域名转向判断我现在有二个域名需要转向比如说用户访问http://abc.com时我要跳到http://abcd.com如果用户访

域名转向判断
我现在有二个域名需要转向
比如说用户访问   http://abc.com   时我要跳到   http://abcd.com
如果用户访问       http://abc.cn     时我要跳到   http://abcd.cn
请问这样怎么才可以实现,谢谢了。

[解决办法]
设置你的“http://abc.com”的首面为:
<html>
<head>
<title> aaa </title>
<meta http-equiv= "Refresh " content= "0; URL=./EndUserLoginAction.do ">
<meta http-equiv= "Content-Type " content= "text/html ">
</head>
<body bgcolor= "EEEEF5 ">
<div align= "center ">
Loading..........
</div>
</body>
</html>
[解决办法]
设置你的“http://abc.com”的默认首页设为:
<html>
<head>
<title> aaa </title>
<meta http-equiv= "Refresh " content= "0; URL=http://aabc.com ">
<meta http-equiv= "Content-Type " content= "text/html ">
</head>
<body bgcolor= "EEEEF5 ">
<div align= "center ">
Loading..........
</div>
</body>
</htm>

热点排行
Bad Request.