<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Send the project root to Laravel's front controller.
    RewriteRule ^$ public/index.php [L]

    # Redirect everything else to the public directory.
    RewriteCond %{REQUEST_URI} !/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
