2004-06-09 Wikis

Working on my Oddmuse:404 Handler Extension ā€“ Iā€™m trying to test a multilingual setup with content negotiation. You can test it:

Oddmuse:404 Handler Extension

http://www.emacswiki.org/emacs/pages/

SiteMap

When you browse pages, static copies are used (eg. SiteMap.en or SiteMap.de, depending on your browser preferences). If no static copies are available, the wiki is called as a 404 handler to serve the page, and save a static copy.

SiteMap

SiteMap

The last remaining problem is an extra item in error.log: When I requests a page _wiki_page/CSS, and CSS.en and CSS.de exist, and my browser preferences indicate that I prefer german, then CSS.de is served correctly, but error.log still says:

Negotiation: discovered file(s) matching request: _org_org.emacswiki/htdocs/emacs/wiki/CSS (None could be negotiated).

I wonder what it means. I noticed that the 404 handler is being called all the time, since the timestamp on the static files keeps being changed. How annoying. But I have to sleep. šŸ˜„

Preliminary code:

http://www.emacswiki.org/scripts/404emacs

ā€‹#Wikis