# Turn on the rewrite engine
RewriteEngine  on

# If the request doesn't end in .php or .ico (Case insensitive) continue processing rules
RewriteCond %{REQUEST_URI} !\.php$ [NC]
RewriteCond %{REQUEST_URI} !\.ico$ [NC]

# If the request doesn't end in a slash continue processing the rules
RewriteCond %{REQUEST_URI} [^/]$

# Rewrite the request with a .php extension. L means this is the 'Last' rule
RewriteRule ^(.*)$ $1.php [L]
