robots.txt and blocking querystrings

Discussion in 'robots.txt' started by relixx, Feb 15, 2007.

  1. #1
    Is it possible to block a file that will have querystrings attached?

    The situation is a bit complicated, but its enough to say that the only solution I currently have available is to attempt to block the file using robots.

    However, the file in question uses querystrings as well, so if I had to use

    Disallow: /directory/file.html

    would the robots (especially Google) also ignore "file.html?blah=meh", etc?
     
    relixx, Feb 15, 2007 IP
  2. xarkob

    xarkob Banned

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes, i guess it would also block indexing of querystrings
     
    xarkob, Feb 19, 2007 IP
  3. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep, your line disallows access to all URL's starting with /directory/file.html.

    Jean-Luc
     
    Jean-Luc, Feb 20, 2007 IP
  4. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Ah, thanks for the help guys :)
     
    relixx, Feb 20, 2007 IP