Welcome to the server-side include guide! This guide is in development, so if you have any suggestions, please let us know. This guide is written for Web Hosting users, and may not apply to other campus servers (glue, wam, etc.). If your site is not on Web Hosting system, please ask your server administrator about server-side includes before using them.

If you've never visited this site before, please read the background material below. If you've already read the background material, you might just want to skip ahead to the tutorials.

Background Material

Why would I want to use server-side includes?

Server-side includes enforce consistency throughout your web site. Most websites have a standard navigational bar at the top or bottom (or both!) of all the web pages in the site, and a standard style and color scheme. With sever-side includes, the html code for reoccuring items like a navigational bar can be stored in one place, so if you want to change a button on your nav bar, or change the color of all your pages' links, you only have to do it once, in one file. Compared with opening tens or hundreds of pages to change the same thing in each of them, server-side includes are a snap! You can also set variables in the server-side include code. For example, if you have a send mail button in your nav bar, but you want to have a different email address on each page that the button sends to, you can still use server-side includes.

What are server-side includes?

Server-side includes can best be explained by example. But, in short, they consist of two parts:
1. snippets of code that you include in your html file that refer to your include file, and
2. An include file, written in html, with the code that you want to appear on all your pages.

Please view The Slideshow Example

Tutorials:

Please select from the tutorials below:

My site already uses server side includes:

How to apply a style from an existing page on your site to a new page
How to modify the include file, which will make changes to every page

I am creating a new site, or I want to implement server-side includes on an old site.

How to create server-side includes for your pages


Take me back to the front page

Do let us know if we can edit this guide to make it more helpful for those who will come after.