title: Wordpress ignoring sub-directory, hit or miss
body: <p>I have a site running on WordPress. I am testing out a new site on our server under a subdirectory (<code>sandbox/</code>). For the new site I'm using an .htaccess rewrite rule similar to WP that rewrites to clean urls. I'm finding that pages that have an equivalent path in WP redirect to the WP page.</p>
  
  <p>For instance, I have one page that has an url of <code>/sandbox/supplies/information</code> which redirects correctly to the new site. However, I have another page that is at <code>/sandbox/events/</code> that will redirect to the base director at <code>/events/</code>.</p>
  
  <p>After looking around at people's similar problems, I've tried using <code>RewriteCond %{REQUEST_URI} !sandbox/ [NC]</code> and other variants (<code>!^sandbox/.$</code> and the like), but it doesn't seem to have any effect whatsoever. I've copied the two .htaccess files below.</p>
  
  <p>Thanks in advance for your time. I hope I explained the situation well enough.</p>
  
  <p><em>Base .htaccess</em></p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
  
      RewriteCond %{REQUEST_URI} !sandbox/ [NC]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p><em>Sub-directory (sandbox/) .htaccess</em></p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /sandbox/index.php [L]
  </code></pre>