DirectoryIndex index.html

RewriteEngine On

# Backwards-compatible redirects for old/live links
RewriteRule ^contact-us/?$ /Contact/ [R=301,L,NC]
RewriteRule ^toner/?$ /toner-order/ [R=301,L,NC]

# Hide index.html
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.html[\s?] [NC]
RewriteRule ^(.*/)?index\.html$ /$1 [R=301,L]

# Hide .html in the address bar
RewriteCond %{THE_REQUEST} \s/+(.+?)\.html[\s?] [NC]
RewriteRule ^(.+)\.html$ /$1 [R=301,L]

# Let clean URLs load matching .html files
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+?)/?$ $1.html [L]