title: mod_rewrite only at this level, but not at levels below
body: <p>Is there a method using mod_rewrite to have a rule which matches index.php (or whatever page in question) at "this" level of the directory structure, but not any index.php in a subdirectory below it?</p>
  
  <p>For example:</p>
  
  <p><a href="http://www.domain.tld/index.php" rel="nofollow">http://www.domain.tld/index.php</a> == should match, while</p>
  
  <p><a href="http://www.domain.tld/admin/index.php" rel="nofollow">http://www.domain.tld/admin/index.php</a> == should NOT match</p>
  
  <p>I.e., I'm looking for a "do not descend" argument, but don't know the right phrase to search for in the documentation.  Note that we may not be talking about just a /admin, but ANY subdirectory, and that the page we're trying to match may not be at the top level like this example, but rather, at the same level as the htaccess file, wherever it is.</p>