# Enable rewrite engine
RewriteEngine On

# Set default index files
DirectoryIndex login.php index.php index.html

# Allow access to PHP files
<FilesMatch "\.php$">
    Order Allow,Deny
    Allow from all
</FilesMatch>

# Protect database config
<FilesMatch "dbconfig\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>
