~bandali/site

ref: 28e5c31273051174452dcc1be343ea10dd7eb8f6 site/static/.htaccess -rw-r--r-- 459 bytes
28e5c312Amin Bandali move bandali.eu.org-specific bits of .htaccess to caffeine 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<IfModule mod_rewrite.c>
# 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]
</IfModule>