# Enable mod_rewrite
RewriteEngine On

# Check if the requested file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Remove .php extension from the URL
RewriteRule ^([^\.]+)$ $1.php [L]
