redirect for right reasons

Discussion in 'Search Engine Optimization' started by vamoosevarmint, Mar 26, 2007.

  1. #1
    I installed this code in my root htaccess file it seems to work and all but I want to make sure its the right way.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]

    I have read it may help move any links that are under my http ://example. com listing and redirect them to my www. example. com list for the search engines. I guess I am trying to standardize my URL to http:// www. example. com. It looks like the search engines have indexed more under http:// example. com then under http:// www. example. com. I know in time it should go to my standardized direction.

    I want to know if this thinking is correct?
    Is this the proper code for this type of redirect?
    It is my first website for my company and still being tweeked.
     
    vamoosevarmint, Mar 26, 2007 IP
  2. Kaptain Kangaroo

    Kaptain Kangaroo Peon

    Messages:
    325
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks right to me. The code is posted all over this forum if you want to double check though. :)
     
    Kaptain Kangaroo, Mar 26, 2007 IP
  3. extreme90

    extreme90 Banned

    Messages:
    450
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes , also looking right to me !
     
    extreme90, Mar 27, 2007 IP
  4. jdevalk

    jdevalk Active Member

    Messages:
    417
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    68
    #4
    I'm wondering though vamoosevarmint, why did you choose the www variant if Google had more non-www pages indexed?
     
    jdevalk, Mar 27, 2007 IP