Forum Moderators: phranque

Message Too Old, No Replies

Server Side Includes - SSI

.htm issue

         

stasera

6:11 pm on May 24, 2005 (gmt 0)



I 've been trying to work this out myself but asking for some expert help.

I currently building a template using dreamweaver mx 2004.

I've included ssi include for the footer, header and menu. No problems, works great.

Now I would like to add a login box in the template as an include. <!--#include virtual="../login.php" -->

Problem is that this works for .html but not for .htm

What am I doing wrong? I would like my files to be in htm.

Thanx

abbeyvet

6:21 pm on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The server needs to parse .htm files for SSI, it would seem it is doing it for .html, but not .htm.

If your host allows it and it's a *nix server you can set this up with a .htaccess file containing this:

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