title: htaccess for codeIgniter
body: <p>I'm trying to redirect a user to <code>/hd/142</code> if they don't have <code>/hd/</code> in the URL. I've tried so many options and most of them just redirected me over and over again.  Here is the current <code>.htaccess</code> that I have setup.</p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|images|css|js)
  RewriteRule ^hd/(.*)$ /index.php/$1 [L]
  RewriteRule ^(images|css|js)/(.*) /applicationFiles/$1/$2 [L]
  </code></pre>
  
  <p>Thanks</p>