title: How to redirect all requests for a site's sub-director(ies) to a specific web document
body: <p>I have a site with many web documents in a sub-directory and sub-directories.</p>
  
  <p>I want all of them to resolve to a single new landing page.</p>
  
  <p>Note: my <code>.htaccess</code> file is in the doc root</p>
  
  <p>Example:</p>
  
  <p><code>http://mysite.example.com/sub-directory/*</code> --> <code>http://mysite.example.com/sub-directory/index.php</code></p>
  
  <p>This needs to include <code>http://mysite.example.com/sub-directory/another-sub-directory/*</code> --> <code>http://mysite.example.com/sub-directory/index.php</code></p>
  
  <p>This should not apply to <code>http://mysite.example.com/any-other-sub-directory/*</code> ... only <code>http://mysite.example.com/sub-directory/*</code></p>
  
  <p>I've tried:</p>
  
  <pre><code># these do not work
  Options +FollowSymLinks
  Options -Multiviews
  RewriteEngine On
  RewriteRule ^/sub-directory/$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^sub-directory/(.+)$ /index.php [L]
  
  # these do not work either
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.example\.com\/sub-directory\/$ [NC]
  RewriteRule ^(.*)$ http://mysite.example.com/sub-directory/index.php [R=302,NC,L]
  </code></pre>
  
  <p>I need a redirect rule vs. a pure re-write rule for both SEO and my users's browser bookmark purposes. Therefore, if anyone tries to visit <code>http://mysite.example.com/sub-directory/*</code> I want them redirected to <code>http://mysite.example.com/sub-directory/index.php</code> and I want them to see <code>http://mysite.example.com/sub-directory/index.php</code> as the browser URL. If they request any other web page in the site outside of <code>http://mysite.example.com/sub-directory/*</code>, I want them to see the page they request.</p>