My Robot Txt Syntax?

Discussion in 'robots.txt' started by The Rock, Mar 1, 2007.

  1. #1
    Hi All,

    I have some doubt in my robots txt file. I want to confirm only one thing.

    What is difference between both below syntax?

    User-agent: *
    Disallow: /images

    User-agent: *
    Disallow: /images/

    What will happen if we placed (/) after images?


    Thanks,
    Rock:)
     
    The Rock, Mar 1, 2007 IP
  2. TatiAnA

    TatiAnA Active Member

    Messages:
    1,103
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    78
    #2
    I don't think it makes any difference.
     
    TatiAnA, Mar 2, 2007 IP
  3. Scolls

    Scolls Guest

    Messages:
    70
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Correctly putting the / after /images ensures that no filenames starting with "images" would be excluded.

    For example,

    disallow: /images

    would exclude not only the directory /images/ but also files like /images_viewer.php etc should you have any such files.
     
    Scolls, Mar 2, 2007 IP
  4. ac_roma

    ac_roma Guest

    Messages:
    173
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no diffrent between
     
    ac_roma, Mar 2, 2007 IP