RewriteEngine On

# Redirect .php to clean URL (SEO friendly)
RewriteCond %{THE_REQUEST} \s/+(.*)\.php[\s?] [NC]
RewriteRule ^ /%1 [R=301,L]

# Internally load .php files
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ $1.php [L]



RewriteEngine On
RewriteRule ^sitemap\.xml$ sitemap.php [L]