Monday, November 24, 2003

APACHE: Enabling Server Side Includes

One down side of using blogger, is that you are denied the near orgasmic pleasure of producing your blog in bloody Lotus Domino. I realise I have the opportunity of using one of the many fabulous free Domino blog templates, but ... well I just can't be arsed. I wanted to have fun, sort of.

Anyhow, to have a link section on the left hand side (and other stuff) I decided to use server side includes. This involved:

1. Creating a .htaccess file and shoving it on my web server:

#
# J2ME Stuff
#

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar

#
# Server side includes
#

AddType text/html .htm
AddHandler server-parsed .htm


2. Adding the includes to my blogger template and associated files like this:
<!--#include virtual="/links.htm" -->

Bit of fannying about in places but largely painless.

P.S I briefly entertained using XML and XSLT but became nervous of the browser support. Cowardy Custard.

This page is powered by Blogger. Isn't yours?