.htaccess rewrite VS 301 redirect

Discussion in 'Site & Server Administration' started by lopes, Sep 10, 2009.

  1. #1
    Hello, I had a URL like

    http://www.mydomain.com/old and I decided to redirect all visitors that were going to that location to the root domain. Of course I could have used a 301 redirect to do that, however I decided to use .htaccess Rewrite Rule instead.

    Was that a good decision regarding SEO? Or should I change it to a 301 redirect instead?
     
    lopes, Sep 10, 2009 IP
  2. WallaceYeung

    WallaceYeung Notable Member

    Messages:
    3,377
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    230
    Digital Goods:
    1
    #2
    i would choose 301 redirect rather than .htaccess,
    anyway there is no difference regarding seo IMO.
     
    WallaceYeung, Sep 10, 2009 IP
  3. mitnitwer

    mitnitwer Peon

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I suggest using .htacces over 301 redirects
     
    mitnitwer, Sep 13, 2009 IP
  4. lopes

    lopes Well-Known Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    120
    #4
    I have researched better. 301 is the way to go, otherwise Google will see it as duplicated content.
     
    lopes, Sep 13, 2009 IP
  5. arthur.x

    arthur.x Banned

    Messages:
    568
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    htaccess you mean mod_rewrite?
     
    arthur.x, Sep 13, 2009 IP
  6. keym4k3r

    keym4k3r Peon

    Messages:
    250
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You need 301 redirection.
    But you can put 301 in htaccess
    like RewriteRule ^/old/$ ..... [L,R=301]
    so it doesn't matter.
     
    keym4k3r, Sep 13, 2009 IP