title: Apache htaccess rule for url shortening
body: <p>I'm trying to create something 
  short.com/ASWi7 -> short.com/index.php?h=ASWi7</p>
  
  <p>so I tried using this code on my htaccess</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_URI}  !^/index.php
  RewriteRule ^(.*)$ /index.php?hash=$1   [L]
  </code></pre>
  
  <p>but the website loses the css and everything...i organized my site in folder etc...
  so how can i exclude all the folders or cetain files to be part of that rule?</p>