Home >> Support >> FAQs >> SSI (Server Side Includes)

SSI (Server Side Includes)

What is SSI?
I need some sort of path for my Server Side Includes to work. What is that path?

 

 

[Back to FAQ Topic Index]

 

 


What is SSI?

SSI stands for Server Side Include ... and it means that you can insert the contents of another web page, program or file into the web page that adds the Server Side Include.

A couple of important points you need to follow for SSI to work on your domain.

  1. The web page that adds the SSI instruction to include another page or program MUST end with .shtml or .sht rather than .html or .htm.
  2. The URL to the page you want to insert must be relative to the current web page rather than a full URL.


The SSI feature on your domain is limited to what is known as a "exec cgi command". This simply means that you can insert into any page the ability to execute any cgi program. The format for a Server Side Include is:

<!--#element attribute=value -->

or

<!--#include virtual="colors.ssi" -->
<!-- This command inserts the content of the file colors.ssi -->
<!-- colors.ssi must be in same directory as this file -->

One quick observation... do you notice how this SSI instruction uses a *relative* URL (/cgi-bin/....) instead of a FULL URL? This is very important to keep in mind when using SSI.

For example, let's say we want to include a counter program (that has the name, counter.cgi) on our home page, called normally index.html. Remember! Because we want to add a SSI instruction in our home page, it must end with .shtml or .sht. In this case, we would name it index.shtml.

 

 

[SSI Topics] - [Back to FAQ Topic Index]

 

 

 

 


I need some sort of path for my Server Side Includes to work. What is that path?

<!--#include virtual="anyfilehere" -->

 

[SSI Topics] - [Back to FAQ Topic Index]