<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Do not rewrite if it's already pointing to the public folder
    RewriteCond %{REQUEST_URI} !/public/ [NC]
    
    # Rewrite all requests to public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
