title: Url rewriting for hiding folder name and open it without folder name
body: <p>I hv used all my uls in action with root directory now i cant change all of them so i need to rewrite my home url which hides folder name and if someone opens that domain then data saved in that folder must also be opened but folder name should not be displayed in url i.e. i have this </p>
  
  <p><a href="http://example.com/foldername" rel="nofollow">http://example.com/foldername</a></p>
  
  <p>.I want to change this in as </p>
  
  <p><a href="http://example.com" rel="nofollow">http://example.com</a></p>
  
  <p>but it should automatically take foldername data .How this can be achieved
  by using ".htaccess" file</p>
  
  <pre><code>RewriteEngine On
  # The following rule tells Apache that if the requested filename
  # exists, simply serve it.
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  # The following rewrites all other queries to index.php. The 
  # condition ensures that if you are using Apache aliases to do
  # mass virtual hosting, the base path will be prepended to 
  # allow proper resolution of the index.php file; it will work
  # in non-aliased environments as well, providing a safe, one-size 
  # fits all solution.
  RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
  RewriteRule ^(.*) - [E=BASE:%1]
  RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
  </code></pre>
  
  <p>This is the .htaccess file i am currently using </p>