# File: /public_html/nexro/.htaccess
Options -Indexes
RewriteEngine On
RewriteBase /nexro/

# 1. Force direct requests to static admin.html or admin_2.html through the authenticated admin.php gatekeeper
RewriteRule ^admin(_2)?\.html$ admin.php [R=302,L]

# 2. Block direct public HTTP access to backend configuration, schema, and storage directories
RewriteRule ^(config|database|storage)/ - [F,L]
RewriteRule ^\.env - [F,L]