RewriteEngine On
RewriteBase /wali/auth/

# Restrict access to .htaccess and other sensitive files
<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>

# Prevent directory listing
Options -Indexes

# Rewrite rule to match the URL /wali/auth/ID and route to index.php?id=ID
RewriteRule ^([a-zA-Z0-9]+)$ index.php?id=$1 [L,QSA]

# Optional: Custom 404 error page
# ErrorDocument 404 /wali/auth/404.php