Auto www.domain

Discussion in 'White Hat SEO' started by 420friendly, Feb 8, 2012.

  1. 420friendly

    420friendly Regular Member

    Joined:
    Nov 12, 2009
    Messages:
    248
    Likes Received:
    68
    Location:
    Oz
    How do you guys make it to where when your domain typed like this: http://yoursite.com

    Automaticly goes to: http://www.yoursite.com

    What is the correct way to do this... basically the way YouTube does it.

    I know there is a few different ways to do it... I am asking how you think is best ;)
     
  2. idsignup

    idsignup Junior Member

    Joined:
    May 4, 2011
    Messages:
    195
    Likes Received:
    8
    use .htacess with code

    replace your site
     
  3. 420friendly

    420friendly Regular Member

    Joined:
    Nov 12, 2009
    Messages:
    248
    Likes Received:
    68
    Location:
    Oz
    Why would you do it using the htaccess file and not just do it server side using linux?
     
  4. Seo Lover

    Seo Lover Jr. Executive VIP Jr. VIP

    Joined:
    Jan 30, 2011
    Messages:
    6,038
    Likes Received:
    4,314
    Gender:
    Male
    Occupation:
    Hanging Around Interawebs !
    Location:
    <-----------------Sin City
    If you use CMS like wordpress then you can set this in its admin properties .
    Many CMS and scripts have this option