+ Reply to Thread
Results 1 to 5 of 5

Thread: 如何实现www.domain.com和domain.com都能访问网站

  1. #1
    Junior Member dreamife is on a distinguished road
    Join Date
    Oct 2010
    Posts
    6

    Post 如何实现www.domain.com和domain.com都能访问网站

    我不是想实现这个功能,因为我的网站已经实现了。
    我用的是Wordpress,装了一个 WordPress Mobile Pack插件,我现在想再加一个m.domain.com,然后也能访问我的网站, WordPress Mobile Pack的插件可以通过设定域名来加载手机主题。已经将m.domain.com解析到和domain.com同样的地址,但这样做是不够的。我试过将wwvv.domain.com设成手机版的域名,可以成功访问手机版。所以我想只要和对vvww.domain.com的设置一样设置m.domain.com就行了。
    那各位高手有知道vvww.domain.com是怎么设置的?我当时只是解析了下,应该是有什么默认设置吧[/url]
    Last edited by dreamife; 10-17-2010 at 04:13 PM.

  2. #2
    Member wbchn is on a distinguished road wbchn's Avatar
    Join Date
    Jun 2010
    Location
    China
    Posts
    32

    Re: 如何实现www.domain.com和domain.com都能访问网站

    domain.com A记录到IP
    www子域名也 A记录到IP
    服务器认为domain.com和www均指向www目录
    m子域名服务器会认为指向m目录,因此不行, 当然你可以用301跳转, 不知道h1f同意不.
    或是试试NS记录做个CNAME指向www

  3. #3
    Moderator flasherwade is on a distinguished road flasherwade's Avatar
    Join Date
    Apr 2010
    Posts
    901

    Re: 如何实现www.domain.com和domain.com都能访问网站

    h1f的m.domain.com会自动解析到domain.com下的m文件夹。
    可以试试DA中的domain pointer功能。
    举报滥用

    get help from online chat(免注册在线聊天)

    host1free使用说明 用Ctrl+F更快找到信息 QQ群:71538943

    QQ International


    QQ IM Group of host1free:71538943

  4. #4
    Junior Member dreamife is on a distinguished road
    Join Date
    Oct 2010
    Posts
    6

    Re: 如何实现www.domain.com和domain.com都能访问网站

    谢谢,可以了,但domain pointer不就是给域名起个别名,和CNAME的功能不是一样吗?

  5. #5
    Member wbchn is on a distinguished road wbchn's Avatar
    Join Date
    Jun 2010
    Location
    China
    Posts
    32

    Re: 如何实现www.domain.com和domain.com都能访问网站

    Quote Originally Posted by dreamife View Post
    谢谢,可以了,但domain pointer不就是给域名起个别名,和CNAME的功能不是一样吗?
    不一样, CNAME只能指向域名, 而pointer可以指向任意的网站甚至网址.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18