title: .htaccess edit to hide folder in the server
body: <p>I am trying to hide my folders inside my server to be shown in the URL, I have a website hosted by bluehost.  I tried several .htaccess change, but no luck.  Anyone care to let me know what i did wrong?  I am trying to have www.domain.com/application/models/login.php as www.domain.com/login.php instead.  I tried this:</p>
  
  <pre class="lang-none prettyprint-override"><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule ^\/application\/models\/(.*)$ \/login\.php$ [NC,L]
  </code></pre>
  
  <p>and this:</p>
  
  <pre class="lang-none prettyprint-override"><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.domain\.com$
  RewriteRule ^application\/models\/login\.php$ "http\:\/\/domain\.com\/" [R=301,L]
  </code></pre>
  
  <p>But none of which works :(</p>