Commit | Line | Data |
---|---|---|
b791db4e | 1 | <IfModule mod_rewrite.c> |
28e5c312 AB |
2 | # don't add .html in the rewrite below |
3 | Options -MultiViews | |
4 | ||
b791db4e | 5 | RewriteEngine On |
28e5c312 AB |
6 | RewriteBase / |
7 | # if not already on bandali.eu.org, redirect to there | |
8 | RewriteCond %{HTTP_HOST} !^bandali\.eu\.org$ | |
9 | RewriteRule ^(.*)$ https://bandali.eu.org/$1 [R] | |
b791db4e | 10 | |
28e5c312 AB |
11 | # now we have to explicitly tell apache that files with no |
12 | # extension are actually .html | |
13 | RewriteCond %{REQUEST_FILENAME}.html -f | |
14 | RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L] | |
15 | </IfModule> |