title: robots.txt in subdirectory
body: <p>I have a project that lies in a folder below the main domain, and I dont have access to the root of the domain itself.</p>
  
  <pre><code>http://mydomain.com/myproject/
  </code></pre>
  
  <p>I want to disallow indexing on the subfolder "forbidden"</p>
  
  <pre><code>http://mydomain.com/myproject/forbidden/
  </code></pre>
  
  <p>Can I simply put a robots.txt in the myproject folder? Will it get read even if there is no robots.txt in the root?</p>
  
  <p>What is the correct syntax for disallowing the forbidden folder?</p>
  
  <pre><code>User-agent: *
  Disallow: /forbidden/
  </code></pre>
  
  <p>or</p>
  
  <pre><code>User-agent: *
  Disallow: forbidden/
  </code></pre>