move bandali.eu.org-specific bits of .htaccess to caffeine
[~bandali/bndl.org] / static / .htaccess
CommitLineData
b791db4e 1<IfModule mod_rewrite.c>
28e5c312
AB
2# don't add .html in the rewrite below
3Options -MultiViews
4
b791db4e 5RewriteEngine On
28e5c312
AB
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]
b791db4e 10
28e5c312
AB
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>