# ──────────────────────────────────────────────────────────────────────────
# ROOT .htaccess — ONLY needed if you upload this entire project directly
# into public_html (Option B in DEPLOYMENT_GUIDE.md).
#
# It transparently routes all requests into the /public folder, which is
# where Laravel's actual front controller (index.php) lives.
#
# If you used Option A (Laravel app OUTSIDE public_html, with only the
# contents of /public uploaded to public_html), DELETE this file — it is
# not needed and the public/.htaccess will already be at your web root.
# ──────────────────────────────────────────────────────────────────────────

<IfModule mod_rewrite.c>
    RewriteEngine On

    # If request is not already for /public/..., rewrite it there
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ /public/$1 [L]
</IfModule>
