<IfModule mod_rewrite.c>
RewriteEngine On
# If DocumentRoot is public_html (not public), forward to public/
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/$1 [L,QSA]
</IfModule>
