[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] SSI with .htm and .html
- Subject: RE: [cobalt-users] SSI with .htm and .html
- From: "P S Graham \(Erols\)" <psgraham@xxxxxxxxx>
- Date: Tue Apr 17 12:05:27 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi All,
I'm trying to get SSI to work on .htm and .html files instead of the usual
.shtml. But I only want to turn this on for one virtual site.
I've read through the archives and tried adding an .htaccess file to the
site's web root containing the following:
AddType text/html .shtml
AddHandler server-parsed .shtml
AddType text/html .html
AddHandler server-parsed .html
AddType text/html .htm
AddHandler server-parsed .htm
I've even tried:
AddHandler server-parsed .shtml .html .htm
But I keep getting a 500 server error. I've checked the error logs and see
something like: "error AddType not allowed here"
Any thoughts on this one? Yes I know about xbithack but the .html files I
want SSI on are generated by a cgi-script automatically so I can't keep
making them executable.
Any help is much appreciated!
Thanks.
Brian
Do you have Options +Includes in your .htaccess?
I accomplished this with an .htaccess as follows: (.htm is intentionally
missing)
Options +Includes
AddHandler server-parsed .shtml .html
AddType text/html .shtml .html
Patrick