title: htaccess: remove subdirectory form URL while serving up original content
body: <p>I have a URL structure like this</p>
  
  <pre><code>http://domain.com/page/thing1
  http://domain.com/page/thing2
  http://domain.com/page/thing3
  </code></pre>
  
  <p><strong>I want to:</strong></p>
  
  <ul>
  <li>remove /page/ from the URL</li>
  <li>serve up content from /page/thing1</li>
  </ul>
  
  <p>I am using ExpressionEngine, so here's what I do to remove index.php from the URL</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
          RewriteEngine On
  
          # Removes index.php
          RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>