301 Redirect using .htaccess

Discussion in 'Search Engine Optimization' started by skionxb, Oct 26, 2006.

  1. #1
    I am currently redesigning a site for http://www.avocado.org/

    the new site will have new SEO friendly urls. The old site, has over 3,660 pages indexed in google. I want to 301 redirect them to the new pages. Do you think i should do global redirect for all of them at the same time?
    for instance: if someone clicked on the old url it will go to new INDEX (Home page)

    ErrorDocument 404 /index.html

    or

    should I do following for all 3600 pages?

    redirect 301 /old_file1.html http://www.domain.com/new-file1.html
    redirect 301 /old_file2.html http://www.domain.com/new-file2.html
    .
    .
    .
    redirect 301 /old_file3660.html http://www.domain.com/new-file3660.html

    Thanks
     
    skionxb, Oct 26, 2006 IP
  2. skionxb

    skionxb Peon

    Messages:
    376
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I accidently made 2 posts, please erase one of them!
     
    skionxb, Oct 26, 2006 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^shop/(.*)\_(.*)\.html$ http://www.domain.com/$1-$2.html [R=301,L]

    Click [​IMG] at the other one to report it.
     
    Nintendo, Oct 26, 2006 IP
  4. skionxb

    skionxb Peon

    Messages:
    376
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    so what this code would do?

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^shop/(.*)\_(.*)\.html$ http://www.domain.com/$1-$2.html [R=301,L]

    Thanks
     
    skionxb, Oct 26, 2006 IP
  5. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #5
    Redirect from the old to new URLs.
     
    Nintendo, Oct 26, 2006 IP