Web Hosting Talk







View Full Version : how to use 'server side includes' in html documents?


ivytony
05-12-2006, 12:23 AM
Hi,

I've been trying to use SSI (server side includes) to add a navigation column in every webpage in my website by using SSI.

say, the webpages (named page.htm for example) and the navigation page (navi.htm) are in the same folder.

So, I wrote the following includes in page.htm:

<!--#include virtual="/navi.htm" -->

but this does not work in my page.htm. Anybody knows how to correct this? is the virtual path wrong?

ps: my shared server from hostingzoom supports SSI

thanks

lpmusic
05-12-2006, 12:26 AM
Not that I would ever use SSI, but don't the files you include _from_ have to be .shtml files?

O.D.S.
05-12-2006, 12:37 AM
Depending on the set-up of the server, sometime .html files will process includes.

But, in the majority of situations, your main file needs to be .SHTML and it should include .HTML files.

ivytony
05-12-2006, 01:27 AM
thanks, it now works :)