域名转向判断
我现在有二个域名需要转向
比如说用户访问 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>