1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache or DNS problem?

Discussion in 'Web Hosting' started by upl8t, Nov 30, 2011.

  1. upl8t

    upl8t Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    475
    Likes Received:
    84
    Location:
    New Scotland
    I'm having a problem with one of my sites where i'm starting to get substantial traffic and ranking for pages without the www. I have all of my sites setup to work as www.domain.com This is the only domain that I'm having issues with and I know that I've setup all the linking campaigns to www. I checked my http.conf file again and it's setup the same as every other domain.

    Any ideas on how to fix this or where to look for problems?
     
  2. Hostwinds

    Hostwinds Power Member UnGagged Attendee Enterprise Member

    Joined:
    May 17, 2010
    Messages:
    766
    Likes Received:
    544
    Occupation:
    C.E.O.
    Location:
    Oklahoma
    Home Page:
    Google Web Master Tools, you can specify if you want them to rank the www. or the non www.
     
    • Thanks Thanks x 1
  3. upl8t

    upl8t Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    475
    Likes Received:
    84
    Location:
    New Scotland
    Thanks! I'll check that out and see if I can solve it that way.
     
  4. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    You can also set a directive to rewrite in htaccess:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L
    
     
    • Thanks Thanks x 1