Options -Indexes
RewriteEngine On
RewriteBase /reunion-app/admin/

# ── 1. Serve real files / directories directly ──────────────────────────────
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# ── 2. 301 redirect: strip .php from the browser URL bar ────────────────────
# RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /reunion-app/admin/([^?\ ]+)\.php([?\ ]) [NC]
# RewriteRule ^ /reunion-app/admin/%1%2 [R=301,L,NE]

# ── 3. Internally rewrite clean URL → actual .php file ──────────────────────
# RewriteCond %{REQUEST_FILENAME}.php -f
# RewriteRule ^(.+?)/?$ $1.php [L]
