<FilesMatch "\.(ico|pdf|svg|flv|jpg|jpeg|png|gif|js|css|swf|woff|ttf|json)$">
	Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
<ifModule mod_deflate.c>
	<FilesMatch "\.(js|css|html|php|svg|png|jpeg|jpg|ttf|json)$">
		SetOutputFilter DEFLATE
	</FilesMatch>
</ifModule>

ErrorDocument 404 /404.html
ErrorDocument 403 /403.html

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} \s/+(.+?)\.html[\s?] [NC]
RewriteRule ^ /%1 [R=302,NE,L]

RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} /index\.html [NC]
RewriteRule ^(.*)index\.html$ /$1 [L,R=302,NC,NE]

RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]
