Which redirec to tell the spiders is best?

Discussion in 'Search Engine Optimization' started by TheGhost, Jun 5, 2009.

  1. #1
    I've just completely renewed my website, and all old pages which were indexed by google and other SE's don't exist anymore.

    How do i tell the spiders all pages have been removed?
     
    TheGhost, Jun 5, 2009 IP
  2. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Use a 301 Permanently Moved redirect. Redirect each old URL to the new URL whose content most closely resembles the content found at the old URL. Google will then give the new URL credit for all inbound links (and link text) for the old URL.
     
    Canonical, Jun 5, 2009 IP
  3. sappcomglobal

    sappcomglobal Banned

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes use a 301 redirect in htaccess. If you have a similar page redirect it to that, otherwise just send it to the homepage.
     
    sappcomglobal, Jun 5, 2009 IP
  4. trueMarketing

    trueMarketing Member

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Yep, 301 is the best method. If those old pages have any backlinks pointing to then whatsoever, you may want to set up multiple 301 redirects to preserve the link value and pass that to the page or pages that's new - like Canonical said above.
     
    trueMarketing, Jun 5, 2009 IP
  5. TheGhost

    TheGhost Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, i've 301 redirected all the removed pages.

    One more question

    When i generate a sitemap, it shows two URLS pointing to the homepage

    mydomain.com/ and mydomain.com/index.php

    So google sees / == /index.php , will that give any duplication trouble? How do i create a rule in htaccess to tell the spiders to ignore /index.php and just follow / ?
     
    TheGhost, Jun 5, 2009 IP
  6. TheGhost

    TheGhost Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hmm i think i still need some help with the 301 redirect.

    All the old pages have been removed, and I want all of them (about 300 indexed by google) 301 redirected to index.html
    Manually adding each page redirect is too much work.

    I found this piece of code:
    RewriteRule /.* mydomain.com/ [R=301,L]

    Will that work? Or will that also affect the new site structure?
    Will all pages, including the new ones, point to index.html? I just need all the old pages redirected to index.html

    i'm such a noob
     
    TheGhost, Jun 6, 2009 IP