RewriteEngine On

# Check if the requested filename is not a regular file
RewriteCond %{REQUEST_FILENAME} !-f

# Rewrite the URL to append the .php extension
RewriteRule ^([^\.]+)$ $1.php [NC,L]
