Blog Search
Latest Posts
Learn Chinese Online! - New Website Launch
Domain Name Registration Price Reductions in the New Year
How to Display Your Catalogues or Brochures Online
Signing up for a Google Analytics account
Make use of the web in the economic slowdown
Recent Recommended Links - October 2008
Google Chrome - New Web Browser
New SEO and Link Building Services
Firefox 3 Web Browser Launched
Blog Archive
Browse by Subject
AJAX
Apache
CMS
CSS
HTML
Java
JavaScript
Links
Linux
Mac
MySQL
Pascal
PHP
postgreSQL
RSS
Ruby
SEO
Web Dev News
Windows
XML
Other Resources
Computer Science Student Articles
HTML: Server Side Includes (SSI) and .shtml Pages
Published: 1st May 2006
Revised: 1st May 2006
Server Side Includes (SSI) are directives or commands placed in HTML pages, which are evaluated by the server while the pages are being served. They allow for content to be dynamically combined on an HTML page.
Apache must be configured to allow SSI. mod_include must be installed and enabled. If you have a site hosted by another company, their servers will typically be set up to allow SSI.
It is worth noting that for SSI to function, HTML pages with SSI commands must have the extension .shtml.
Here is example code you can use to include an HTML file within another. Very handy for including headers, footers, menus etc... that you re-use throughout your site.
<!--#include file="your_page.html"-->
Related Links
Related Articles / Posts
Relative File (Virtual) Inclusion - Server Side Includes (SSI) (23/03/2007)
CSS Layouts Without Tables - Tableless Design (Article) (07/11/2006)
The Origin of the Internet and Hypertext (Article) (25/10/2006)
Code Editors (Syntax Highlighting) - Aptana, Crimson Editor, PHP Designer (14/08/2006)
HTML: Scrolling Marquee Element (03/06/2006)


