title: how to hide folder name from url using .htaccess
body: <p>I have a domain example.com i want to redirect it to example.com/public but /public folder should hide from the url.</p>
  
  <p>I am using the below code in .htaccess to redirect, but unable to hide the folder name</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond %{HTTP_HOST} ^example\.com$
  
  RewriteRule (.*) http://www.example.com/$1 [R=301,L]
  
  RewriteRule ^$ public [L]
  </code></pre>
  
  <p>Please help me out for this issue.</p>