RewriteEngine on
Options +MultiViews
DefaultType application/x-httpd-php
DirectoryIndex index.php index.html
ErrorDocument 404 /404.html



RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]

