
# RewriteEngine on

# RewriteOptions inherit

# <Files 403.shtml>
# order allow,deny
# allow from all
# </Files>


# This directory is empty on disk — the admin panel is served by Laravel
# (routes/admin.php). Without these rules Apache treats /admin/ as a real
# directory, finds no index file, and returns 403 Forbidden.
#
# mod_rewrite per-directory rules are NOT inherited from the parent .htaccess,
# so the root Laravel fallback never applies here. Hand every /admin/* request
# to the front controller explicitly.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteRule ^ /index.php [L]
</IfModule>

# Belt and braces: if mod_rewrite is unavailable, don't leak a directory listing.
<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>
