最简单的办法,让你的域名注册服务提供商给你做mail.totue.net的指向(几十元钱)

解决方案 »

  1.   

    不用php程序,这是web服务器设置的问题。
      

  2.   

    用php程序也可以达到如此的功能。
    index.html或其他默认的首先访问到joo.net的文件名:
    <html><head><title></title></head><body>
    <script langugage="JavaScript">
      switch(window.location.hostname.toLowerCase())
      {
        case("totue.net"):
          window.location.replace("http://www.totue.net/other_index.htm");
          break;
        case("mail.totue.net"):
          window.location.replace("http://mail.totue.net/other.php");
          break;
        default:
          window.location.replace("http://www.totue.net/other_index.htm");
          break;
      }
    </script>
    </body></html>
    http://www.totue.net/other_index.htm为www服务器的真正首页。
    http://mail.totue.net/other.php为mail服务器的真正首页。
    能省域名注册服务提供商给你做mail.totue.net的指向的几十元钱,自然可以省。对于服务器的设置是否能解决问题,关注中。