The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cname to hostname without www

Discussion in 'General Discussion' started by equens, Jun 21, 2010.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    I would like to know how can I add a cname to redirect one domain name with and without www.

    In Enom I always use @ but I can't do it in Cpanel.
    Thanks in advance.
     
  2. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    If you're talking about doing redirects (i.e. redirecting users who visit domain.com to www.domain.com) you need to deal with mod_rewrite rules not DNS. I'm just guessing here as I'm not too clear on your question.
     
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    I'm talking about a customer who want to host his domain name in mobileme service. I setup a cname zone to web.me.com. but it only works if I go to www.domainname.com and not to domainname.com.

    I know this can solved by adding a redirect in htaccess but it would be most usefully if I could do it by editing its dns in the case of that domain does not have a hosting plan.

    Thanks for your help.
     
  4. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    The record for domainname.com needs to be set to an ip address. If the mobileme service supports this, then it will work. Otherwise it will need to redirect. You can't use a cname for domainname.com without breaking all of the other records.
     
Loading...

Share This Page