# Enable Rewrite Engine
RewriteEngine On

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

# Redirect requests without .php to the .php file
RewriteRule ^(.*)$ $1.php [L]

