Remove index.php from URL and add .html extension with .htaccess
===

I'm trying to implement a flat-file (no database) CMS on a site that has all its pages ending in .html. 

The CMS uses index.php to serve all its pages and then uses .htaccess to remove it so that you end with URLs like /page-name instead of /index.php/page-name

What I want to do is to end up with URLs like /page-name.html

The default .htaccess file looks like:

    RewriteEngine On

	RewriteRule ^(_config) - [F,L]
	RewriteRule ^(.*).yml$ - [F,L]
	RewriteRule ^(.*).yaml$ - [F,L]
	RewriteRule ^(.*/)?\.git+ - [F,L]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)$ /index.php [QSA,L]

How do I modify it to do what I want?