# don't add .html in the rewrite below Options -MultiViews RewriteEngine On RewriteBase / # if not already on bandali.eu.org, redirect to there RewriteCond %{HTTP_HOST} !^bandali\.eu\.org$ RewriteRule ^(.*)$ https://bandali.eu.org/$1 [R] # now we have to explicitly tell apache that files with no # extension are actually .html RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]