# Set default index file
DirectoryIndex index.php index.html

# Disable directory listing
Options -Indexes

# Enable Rewrite Engine (for pretty URLs or future use)
RewriteEngine On

# Optional: Force trailing slash remove (SEO friendly)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]

# Optional: Redirect all requests to index.php (for routing, like in frameworks)
# Uncomment if needed
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php [QSA,L]
