You can embed SSI commands in your pages and they are activated when the page is loaded. Server Side Includes, among other things, allow you to easily include other files in your pages.
An important note is that your pages should have the .shtml extension to enable them to process SSI commands.
Here's an example of using SSI for a navigation footer file.
- 1. Create a file called footer.txt with your navigation links, eg:
<a href="index.shtml">Home</a> | <a href="about.shtml">About</a>
- 2. At the bottom of all web pages (ensure they have the .shtml extension) add this:
<!--#include virtual="footer.txt" -->
- 3. Upload footer.txt and your pages. Now when the page is loaded, the navigation links are added to the bottom of the pages.
- To update your navigation links, simply edit footer.txt and all pages will be updated at once.
Other types of files, CGI Scripts for example, can be included in your pages like this.
The SSI commands are parsed as the page is loaded, visitors are unaware of the use of SSI on your pages, as are Search engines. Engine crawlers will read the included data like normal text on your pages.
Further information on SSI can be obtained here:
NSCA SSI
|