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