diff options
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/conf.d/local-ikiwiki-multilang.conf | 10 | ||||
-rw-r--r-- | apache2/conf.d/local-ikiwiki.conf | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/apache2/conf.d/local-ikiwiki-multilang.conf b/apache2/conf.d/local-ikiwiki-multilang.conf new file mode 100644 index 0000000..6c7b73e --- /dev/null +++ b/apache2/conf.d/local-ikiwiki-multilang.conf @@ -0,0 +1,10 @@ +<Location /> + Options -Indexes +MultiViews + DirectoryIndex index +</Location> +AddLanguage da .da + +AddDefaultCharset UTF-8 + +RewriteEngine On +RewriteRule ^((.*/)?[^\.]+)(\.html|/)$ $1.da.html [R] diff --git a/apache2/conf.d/local-ikiwiki.conf b/apache2/conf.d/local-ikiwiki.conf index 6c7b73e..987e434 100644 --- a/apache2/conf.d/local-ikiwiki.conf +++ b/apache2/conf.d/local-ikiwiki.conf @@ -1,10 +1,6 @@ <Location /> - Options -Indexes +MultiViews - DirectoryIndex index + Options None + DirectoryIndex index.html </Location> -AddLanguage da .da AddDefaultCharset UTF-8 - -RewriteEngine On -RewriteRule ^((.*/)?[^\.]+)(\.html|/)$ $1.da.html [R] |