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

www.domain.com vs domain.com

Discussion in 'Domain Names & Parking' started by chhhad, Sep 12, 2012.

  1. chhhad

    chhhad Junior Member

    Joined:
    Feb 7, 2011
    Messages:
    196
    Likes Received:
    27
    Location:
    Under a rock.
    I have several websites and when you type in domain.com it automatically changes to www.domain.com but suddenly some of my new domains don't do that, they stay domain.com

    Any idea why or how to change it? I want them to be www.domain.com no matter which way you type it.
     
  2. chhhad

    chhhad Junior Member

    Joined:
    Feb 7, 2011
    Messages:
    196
    Likes Received:
    27
    Location:
    Under a rock.
    Anyone? Godaddy didn't know...
     
  3. seoreports

    seoreports Junior Member

    Joined:
    Aug 26, 2012
    Messages:
    151
    Likes Received:
    34
    301 redirect using .htaccess (apache).
    i can't post urls yet, so I couldn't post my example.

    but it should be easy to find online.
     
    • Thanks Thanks x 1
  4. MarkWW

    MarkWW Regular Member UnGagged Attendee

    Joined:
    Mar 4, 2012
    Messages:
    325
    Likes Received:
    126
    Occupation:
    Loan Analyst
    Location:
    Sweden
    Code:
     RewriteEngine On      
          RewriteCond %{HTTP_HOST} ^example\.com
          RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    Add this to your .htaccess
    Don't forget to replace example.com with your domain name.
     
  5. john_mathew

    john_mathew Newbie

    Joined:
    Sep 14, 2012
    Messages:
    21
    Likes Received:
    0
    you can do this using htaccess file or from google webmaster.