Why is my domain redirected to www?

Discussion in 'Site & Server Administration' started by danmarius7, Sep 24, 2007.

  1. #1
    I have bought a domain named cars4news.com
    I have setup a WordPress blog (set to WordPress address (URL): http://cars4news.com ).
    In google sitemaps I have registered my site to be specifically http://mydomain.com
    I don't have any .httacces on my root folder (server at Dreamhost).
    I have another domain hosted here and works just fine.
    Yet when I write in any browser http://cars4news.com it redirects to http://www.cars4news.com
    What am I doing wrong?
     
    danmarius7, Sep 24, 2007 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    1.
    if you dont have the www redirect in your .htaccess - then your host may have it by default

    2.
    Google allows you to select for your domain with or without www to accumulate all links into one site - somewhere in your G webmaster account you find that option if you want to change to www.
     
    hans, Sep 24, 2007 IP
  3. danmarius7

    danmarius7 Active Member

    Messages:
    381
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Read my post first.
    It says that there is no redirect in your .htaccess.
    And I have another domain hosted here and works just fine.
    AND In google sitemaps I have registered my site to be specifically http://mydomain.com
     
    danmarius7, Sep 24, 2007 IP
  4. mediashare

    mediashare Active Member

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    mediashare, Sep 24, 2007 IP
  5. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #5
    i fully read and understood your post first!

    may be you failed to understand the difference between "your .htaccess" and the server config file a host-admin may use
    a host NEVER uses .htaccess for redirect but default config files
    your host can put a www redirect by in HIS config - his config is NOT your .htaccess but the (apache) default-server-configuration file.

    it is quiet apparent that your host USES a redirect in his config - hence you either live with the full www. domain
    or redirect the redirect back to whatever you love to have.

    your host certainly has a good reason for the www and unless you have a root server there may be little success in asking your host to change that machines server config as it would destroy all other shared hosting accounts default redirect to www.

    i always have the www redirect and see absolutely no benefits without www. I also have properly configured my Google account accordingly.

    the fact that another domain works without www may mean nothing at all unless you have BOTH domains on SAME MACHINE = same IP on your host
    each machine may have its own DIFFERENT apache default config and even be on different datacenters within the same host
     
    hans, Sep 24, 2007 IP
  6. harrysmith

    harrysmith Well-Known Member

    Messages:
    466
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Have you checked your meta redirect/refresh tag your developer must have redirected using this tag.
     
    harrysmith, Sep 24, 2007 IP
  7. danmarius7

    danmarius7 Active Member

    Messages:
    381
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #7
    danmarius7, Sep 24, 2007 IP