mod_rewirte & Google caching/indexing

Discussion in 'Google' started by Dody, Apr 27, 2007.

  1. #1
    Hey,
    I am thinking to use mod_rewrite for my forum, but one of the things I am afraid of is the currently index "dynamic" URLs.

    Will they be delete/removed from google cache if I start using mod_rewrite? any body have any experience with that?

    Thanks in advance!
     
    Dody, Apr 27, 2007 IP
  2. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Definately re-write your URLs it does help. Just use 301 re-direct from old to new and google will update its index to reflect the change.
     
    sweetfunny, Apr 27, 2007 IP
  3. ttgapers

    ttgapers Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3

    Do what I do, explicitly tell google spider to not index any dynamic content via robots.txt like so:

    
    User-agent: Googlebot
    Disallow: /*?
    
    Code (markup):
    hope it helps. Only google understands that robots directive, so it will not work for other spiders.

    Hope it helps.

    ttgapers
     
    ttgapers, Apr 27, 2007 IP
  4. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #4
    mod_rewrite has positive effect on indexing. you can block the old urls in robots.txt file.

    if you have pages like /showthread.php?t=312538 or /showthread.php?t=31258668 , you have to add Disallow: /showthread.php$ to your robots.txt file. after this you have to wait googlebot to delete your old urls
     
    trichnosis, Apr 27, 2007 IP
  5. Dody

    Dody Active Member

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I guess you got me wrong
    I don't want to block the current dynamic URLs, I am just wondering if I start using mod_rewrite, will that have any effect on the dynamic URLs, will they be dropped from google index?

    Thanks again
     
    Dody, Apr 27, 2007 IP
  6. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes they will get updated in googles index, how long this takes depends on your page strength, how often you get crawled, backlinks to the particular page etc.
     
    sweetfunny, Apr 27, 2007 IP
  7. ttgapers

    ttgapers Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    since your dynamic urls are already indexed and if entered in a browser will show the same content as a mod_rewrited page, then yes it would be considered duplicate content and you risk google's wrath. therefore u need to explicitly tell googlebot not to index any urls that include a ? , and thus the rule i mentioned to you above be added to your robots.txt.

    ttgapers
     
    ttgapers, Apr 27, 2007 IP