aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2011-04-04 07:16:09 -0400
committerJoey Hess <joey@kitenet.net>2011-04-04 07:16:09 -0400
commit6613b36588167690000f2a92bf4029cf9b1bd740 (patch)
tree82deaf79fd79862b8c27ddab9b1282a6004d12ba /doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn
parent9dfc7a914b8176a3ff41abcb8b20c6630e04c4d7 (diff)
downloadikiwiki-6613b36588167690000f2a92bf4029cf9b1bd740.tar
ikiwiki-6613b36588167690000f2a92bf4029cf9b1bd740.tar.gz
some ideas for how to fix this
Diffstat (limited to 'doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn')
-rw-r--r--doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn b/doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn
index e8832c0b0..05eec7eee 100644
--- a/doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn
+++ b/doc/bugs/po:__apache_config_serves_index_directory_for_index.mdwn
@@ -31,3 +31,22 @@ directory, rather than the site's index page!
>
> I doubt either of those can be implemented without ugly special
> casing. Any other idea? --[[intrigeri]]
+
+>> As I understand it, this is how you'd do it with type maps:
+>>
+>> * turn off MultiViews
+>> * `AddHandler type-map .var`
+>> * `DirectoryIndex index.var`
+>> * make `index.var` a typemap (text file) pointing to `index.en.html`,
+>> `index.fr.html`, etc.
+>>
+>> I'm not sure how well that fits into IkiWiki's structure, though;
+>> perhaps the master language could be responsible for generating the
+>> type-map on behalf of all slave languages, or something?
+>>
+>> Another possibility would be to use filenames like `index.html.en`
+>> and `index.html.fr`, and set `DirectoryIndex index.html`? This could
+>> get problematic for languages whose ISO codes conventionally mean
+>> something else as extensions (Polish, `.pl`, is the usual example,
+>> since many sites interpret `.pl` as "this is a (Perl) CGI").
+>> --[[smcv]]