how to redirect domain.com to www.domain.com

Discussion in 'Search Engine Optimization' started by unna, Jan 12, 2009.

  1. #1
    guys........

    i want to know about how to redirect domain.com to www.domain.com

    thanks
     
    unna, Jan 12, 2009 IP
  2. alana13

    alana13 Well-Known Member

    Messages:
    331
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #2
    It can be done by using .htaccess file on server. I want to know, how can implement this file bcz. i don't know the procedure.

    Alana
     
    alana13, Jan 12, 2009 IP
  3. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #3
    in your .htaccess file, change domain to your domain name

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
     
    DomainCo.US, Jan 12, 2009 IP
  4. RightMan

    RightMan Notable Member

    Messages:
    8,294
    Likes Received:
    450
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Most of the control panels also have this redirect option available where such tasks can be easily accomplished.

    Regards,

    RightMan
     
    RightMan, Jan 12, 2009 IP
  5. ~ServerPoint~

    ~ServerPoint~ Banned

    Messages:
    1,817
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    80
    #5
    You can do that on the server side as well with help of your web hosting company
     
    ~ServerPoint~, Jan 12, 2009 IP
  6. Nancy Kneoteric

    Nancy Kneoteric Banned

    Messages:
    84
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yup, redirect is the best option - implement permanent 301 redirects. Also, you could select the appropriate option from Google Webmasters tool to tell Google which version to use while indexing and displaying results. Thats the easy way out but is only relevant for Google.

    With regards to the redirect, the implementation would depending on the type of server the website is hosted on. Check with your hosting provider if you are unsure about it.
     
    Nancy Kneoteric, Jan 12, 2009 IP
  7. seoservicesvs

    seoservicesvs Member

    Messages:
    310
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #7
    Hello mate, you can do this way. :cool:
     
    seoservicesvs, Jan 12, 2009 IP
  8. unna

    unna Well-Known Member

    Messages:
    3,274
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    140
    #8
    thanks

    but i am using a addon domain. and unable to do this..........
     
    unna, Jan 13, 2009 IP
  9. ceweqsakti

    ceweqsakti Banned

    Messages:
    1,192
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #9
    use wordpress redirect for your blog

    or edit your .htacsess via your FTP
     
    ceweqsakti, Jan 13, 2009 IP