Mon, 28 Jun 2004

PyBlosxom and XHTML

As I said in a previous post, I spent some time cleaning up my PyBlosxom flavour to make it XHTML 1.1 compliant. I also decided to start using my vanity domain a bit better, and moved the blog to the webserver's rootdir. In order to maintain backwards compatibility and not break a lot of links to my blog out there, I installed a Redirect rule so calls to the old dir look at the new dir, and that seems to work.

The main problem is now that I'm not too sure about how to solve the application/xhtml+xml problem with Internet Explorer. The mod_rewrite rules sjoerd and thom shared don't work too well for pyblosxom:

RewriteEngine On
RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml
RewriteCond %{REQUEST_URI} \.xhtml$
RewriteRule .* - "[T=text/html]"

It's easy to have URLs like /blog/2004/Jun/28, and if I understand correctly, the Redirect won't work with this type of URLs. I also don't know if it's possible to make "xhtml" the default flavour in pyblosxom, instead of "html". I'm actually not sure if the permalink for this entry "should" end up with .html, .xhtml, or no suffix at all. Suggestions welcome. :)

No suffix at all. See http://diveintomark.org/archives/2003/08/15/slugs

Posted by James at Tue Jun 29 11:50:20 2004

Thanks,
Actually I had taken this decision already, and the blog is suffix-free now.

Posted by Jordi at Wed Jun 30 09:47:02 2004