RewriteEngine On

# If the request does not match a real file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite URL to include .php
RewriteRule ^([^/]+)$ $1.php [L]
