title: Redirect and remove folder in url .htaccess
body: <p>I am trying to redirect from <strong><a href="http://example.org/family/" rel="nofollow noreferrer">http://example.org/family/</a></strong> to <strong><a href="http://example.org/family/public" rel="nofollow noreferrer">http://example.org/family/public</a></strong> without showing in the url the folder public, so I want to keep the url the same after redirecting. </p>
  
  <p>I've been reading a lot of different solutions but I haven't got the result I want. Currently I have a .htaccess in the 'family' folder but it redirects to the public folder and shows a 404 error:</p>
  
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /family
  RewriteCond %{REQUEST_URI} !^/public
  RewriteRule (.*) public/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>It should show the content in the index.php but it doesn't. The .htaccess inside the public folder is: </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;    
      RewriteEngine On
  
      # Handle Authorization Header
      RewriteCond %{HTTP:Authorization} .
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} (.+)/$
      RewriteRule ^ %1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
      RewriteRule ^/public/(.*) /$1 [QSA]
  
  &lt;/IfModule&gt;
  </code></pre>