RewriteEngine On

RewriteRule ^sitemap\.xml$ - [L]
RewriteRule ^robots\.txt$ - [L]

RewriteRule ^(.+)\.html$ /$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ $1.html [L]

RewriteCond %{REQUEST_URI} !\.(css|js|png|jpg|jpeg|gif)$
RewriteCond %{REQUEST_URI} !^/amp
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/sitemap\.xml$
RewriteCond %{REQUEST_URI} !^/robots\.txt$