Add .html back to the media files

There's a little more magic to Apache's "aliasing"
of foo to foo.html than meets the eye. You can provide
the same resource in different formats and Apache will
serve whichever one the browser best supports through
mod_negotation. If you remove the .html from the *filename*
Apache won't be able to determine the content-type and
will assume the default (currently text/plain).
news-update
Michael Spang 15 years ago
parent ddee695628
commit 9455ac60b9
  1. 2
      xsl/media.xsl

@ -60,7 +60,7 @@
<xsl:document method="xml" encoding="ISO-8859-1"
doctype-public="-//W3C//DTD XHTML 1.1//EN"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
href="{concat($g_outdir, @title, $suffix)}">
href="{concat($g_outdir, @title, $suffix, '.html')}">
<html>
<head>
<title><xsl:value-of select="@title" /></title>

Loading…
Cancel
Save