title: Remove all folder name form url
body: <p>Recently I have installed my site into a sub-folder of root of server.  </p>
  
  <p>So To remove folders name from URL i have used following htaccess code.</p>
  
  <pre><code>Options -Indexes
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^(www.)?hostname.com$
  RewriteRule ^(/)?$ user/site1/index.php [L] 
  </code></pre>
  
  <p>But the <strong>problem</strong> is  that  i am, also able to access my site
  Via</p>
  
  <p><strong>hostname.com/user/site1</strong></p>
  
  <p>How can i stop user accessing my site via  "hostname.com/user/site1"</p>
  
  <p>Please help</p>