title: robots.txt to disallow all pages except one? Do they override and cascade?
body: <p>I want one page of my site to be crawled and no others.</p>
  
  <p><em>Also, if it's any different than the answer above, I would also like to know the syntax for disallowing everything but the root (index) of the website is.</em></p>
  
  <pre><code># robots.txt for http://example.com/
  
  User-agent: *
  Disallow: /style-guide
  Disallow: /splash
  Disallow: /etc
  Disallow: /etc
  Disallow: /etc
  Disallow: /etc
  Disallow: /etc
  </code></pre>
  
  <p>Or can I do like this?</p>
  
  <pre><code># robots.txt for http://example.com/
  
  User-agent: *
  Disallow: /
  Allow: /under-construction
  </code></pre>
  
  <p>Also I should mention that this is a WordPress install, so "under-construction," for example, is set to the front page. So in that case it acts as the index.</p>
  
  <p>I think what I need is to have <code>http://example.com</code> craweld, but no other pages. </p>
  
  <pre><code># robots.txt for http://example.com/
  
  User-agent: *
  Disallow: /*
  </code></pre>
  
  <p>Would this mean disallow anything after the root?</p>