Removing "www" using CNAMES

Discussion in 'Domain Names' started by RootShell, Jul 12, 2007.

  1. #1
    Hi all,

    I'm trying to have the "www" subdomain automatically removed from my URLs. I haven't been able to get any of the mod_rewrite functionality to work (Shared hosting is very buggy about that).

    I had thought of an alternative way of removing the prefix, but I couldn't find anything on the net about it. What if you pointed the www CNAME to "yourdomain.com"? Does anybody know if Google would handle that correctly?
     
    RootShell, Jul 12, 2007 IP
  2. pj1s

    pj1s Active Member

    Messages:
    337
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You can do that. No problem. You could also tell Google through webmaster tools, that 'yourdomain.com' is the preferred name. My sig does the same. If people type www. they are redirected to non www.
     
    pj1s, Jul 12, 2007 IP
  3. Brent H

    Brent H Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I wasn't aware of the webmaster tools method... I've only ever used the htaccess way. At the OP, you should consider moving to a different host... If it can't handle a simple rewrite command...
     
    Brent H, Jul 12, 2007 IP
  4. pj1s

    pj1s Active Member

    Messages:
    337
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Google webmaster tools is only a way of complementing the htaccess file or any other way you are doing this. I was merely commenting on how Google looks at this. Google can't redirect your URL - but you can tell it how to look at it.
     
    pj1s, Jul 13, 2007 IP
  5. RootShell

    RootShell Well-Known Member

    Messages:
    855
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #5
    Thanks For The Solution
     
    RootShell, Jul 13, 2007 IP