# Use PHP 7.4 (already present)
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>

# Enable mod_rewrite
RewriteEngine On
RewriteBase /

# Rewrite /login to login.php
RewriteRule ^login$ login.php [L,QSA]

# Optional: Rewrite all other clean URLs to their respective .php files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ $1.php [L,QSA]
