View Single Post
  #2 (permalink)  
Old 01-14-2008, 07:03 PM
lisa's Avatar
lisa lisa is offline
Administrator
 
Join Date: Apr 2007
Location: Dallas, TX
Posts: 4,294
lisa is the Admin and cannot be rated.
Default

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?
__________________
Don't put the cart before the horse.
Plan your website, then create it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 Create a Website | 2 Create a Website Blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Recent Blog Posts...

Lisa's Favorite Web Tools & Websites
Stop The SEO Madness! [Video]
My Thoughts on Lazy People

Reply With Quote