If you want the same content copied over multiple pages of your site, with HTML you’ll need to manually copy and paste that content. But if you have SSI on your server you can write one file and then include it on your web pages where you need it.
SSI requires that you have it installed on your Web server. Contact your system administrator if you’re not sure.
Difficulty: Average
Time Required: 15 minutes
Here's How:
- Write the HTML you want repeated and save it to a separate file.
I like to save my include files into a separate directory, usually “includes”. I would save my copyright information in an include file like this:includes/copyright.ssi - Open the web page where you want the include file to display.
- Find the location in the HTML where the include file should display, and place the following code there:
<!--#include virtual="includes/copyright.ssi" --> - Change the path and file name to reflect your include file location.
- Add that same code to every page you want your copyright information on.
- When the copyright information changes, edit the
copyright.ssifile. Once you’ve uploaded it, it will change on every page of your site.
Tips:
- You can include HTML or text in an SSI include file. Anything that can go in an standard HTML file can go in an SSI include file.
- You can put SSI includes anywhere in your HTML document, including the head.
- Your readers will not know you’re using SSI unless you name all your files
.ssior.shtml. The pages will display as plain HTML.
What You Need
- SSI on the server

