Most standard hosts provide the functionality for you to use SSI and it's done by simply adding the following code to your page where you want the included file to show up...
<!--#include virtual="includes/page.html" -->
(where includes/page.html is the path to the included page)
Now if I remember correctly, I had to adjust my .htaccess file on my server in order for the include to work with .html extensions. (I got help from my host) By default I believe you have to save your pages as .shtml and I didn't want to to do that because that would mean the path to all my pages would change.
Anyone else got something to add?
|