Skip Navigation
IT Connect
Connecting You to Information Technology at the UW

 

Server Side Includes at the UW

IT Connect > Web > Publishing > Server Side Includes

Server Side Includes (SSI) let you create Web pages which are generated dynamically each time they are requested by a Web browser. All you have to do is embed SSI commands into your HTML. SSI's ease the maintenance of large Web sites by providing a way to insert the contents of a single file into several Web pages.

Introduction

Server Side Includes (SSI) can be used to:

SSI commands are embedded in your HTML as comments. They are parsed by the server when a file is requested by a Web browser.

How To Use SSI

By default, HTML files are not parsed for SSI commands. To use SSI commands in a file, use a .shtml filename extension. For example, if you put SSI commands in your home page, it should be renamed index.shtml.

Examples and Resources

Here are several simple SSI command examples:

Note: the cmd attribute for the exec SSI element has been disabled. Use the cgi attribute instead.

To learn more about SSI and individual SSI commands see: