I want to block folder /Portals/ and /portals/

Discussion in 'robots.txt' started by kshama, Apr 16, 2012.

  1. #1
    Hello Dear,

    I want to block folder /Portals/ and /portals/

    What syntax should we use

    /[Pp]ortals or

    /*ortals
    Just let me know.

    Thanks
     
    kshama, Apr 16, 2012 IP
  2. blacknet

    blacknet Active Member

    Messages:
    709
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    70
    #2
    user-agent: b
    disallow: /Portals/
    disallow: /portals/

    if you need to block both that is, URLs are usually case sensitive, and having both a "Portals" and a "portals" directory on your server would be a bit.. ambiguous.
     
    blacknet, Apr 17, 2012 IP