1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Disallow subdirectory in robots.txt

Discussion in 'robots.txt' started by consultsoft, Dec 24, 2008.

  1. #1
    Hi,
    I have many subdirectory in one directory websites

    can i use
    only

    Disallow: /websites/

    or i must use all subdirectory in robots.txt like

    Disallow: /websites/subdirectory-08
    Disallow: /websites/subdirectory-09
    Disallow: /websites/subdirectory-06

    .............


    Thanks
     
    consultsoft, Dec 24, 2008 IP
  2. supportresort

    supportresort Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #2
    Hi consultsoft

    This will block robots from your websites directory (including files and subdirectories in that directory).

    You would use this method if you only want to block certain files or directories within the websites directory.

    You can also block all robots (or particular robots) using a User-agent entry in your robots.txt file. For example:

    User-agent: *

    will block all robots (some robots may still choose to ignore the robots.txt file though).

    You might like to visit http://www.robotstxt.org/ for more details on configuring your robots.txt file.

    I hope that helps.
     
    supportresort, Jan 14, 2009 IP
  3. shailendra

    shailendra Peon

    Messages:
    1,225
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if you want to disallow robots from entering your websites directory you can use the first one but, if you want to disallow some specific sub-directories within websites diretory then you can use the second one.
    if you want to learn about robots.txt file you can visit robotstxt.org. here you will find answers to all your questions
     
    shailendra, Jan 14, 2009 IP
  4. Angeli001

    Angeli001 Banned

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi All,

    Can u please tell me what this
    Disallow: /*?a_aid

    Code will restrict?
     
    Angeli001, Jan 15, 2009 IP
  5. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #5
    if you want to block your all subdirectories, you can use following code:

    Disallow: /websites/subdirectory-*
     
    manish.chauhan, Jan 20, 2009 IP