chiark / gitweb /
Make the Bedstead Web page unambiguously XHTML.
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Nov 2016 00:59:28 +0000 (00:59 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 8 Nov 2016 00:59:28 +0000 (00:59 +0000)
It was syntactically XHTML already, but various things suggested that it
might be HTML instead.  Now it has a proper content-type in Apache, a
filename that Firefox can understand when reading from a local file, and
for good measure a <meta> tag.  That should keep everyone except possibly
Lynx users happy.

.htaccess
index.xhtml [moved from index.html with 97% similarity]

index c5754d971d955a4226c9ed92b974fd1766b00716..30452ca7f79207622a928a77f51a6a1e35257355 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,2 +1,4 @@
+DirectoryIndex index.xhtml
+AddType application/xhtml+xml;charset=UTF-8 .xhtml
 AddType application/font-sfnt;outlines=CFF;layout=OTF .otf
 AddType application/vnd.font-fontforge-sfd .sfd
similarity index 97%
rename from index.html
rename to index.xhtml
index 5610290bfdc8687ebd6a81564282b7d77691991b..20475558e5abc52321a9c975b58d980feb1340d8 100644 (file)
@@ -3,7 +3,8 @@
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
-    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+    <meta http-equiv="content-type"
+         content="application/xhtml+xml;charset=UTF-8" />
     <title>Bedstead &ndash; MODE 7 for the 21st century</title>
     <link rel="stylesheet" href="bedstead.css" type="text/css" />
   </head>