update links to git repos
[~bandali/bndl.org] / static / .htaccess
1 <IfModule mod_rewrite.c>
2 # don't add .html in the rewrite below
3 Options -MultiViews
4
5 RewriteEngine On
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]
10
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>