RewriteEngine On

# Use admin.php as the default index file
DirectoryIndex admin.php index.php index.html

# Prevent directory listing for security
Options -Indexes

# Optional: Force HTTPS if needed
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]