What is SSI

SSI


The abbreviation SSI stands for the Server Side Includes function, which can be used to dynamically display information within an HTML document. In addition, so-called CGI programs can be started and integrated into the page. Server side includes can thus increase the functionality of a website by first executing the program on the web server before the file is forwarded to the browser.

Background [edit]

SSI was first introduced as a module for the Apache HTTP Server to provide websites with more functions. Today the function is often part of modern web design and can also be used by numerous other server types. Before using SSI, however, it should be ensured that the corresponding server also supports this function in order to avoid malfunctions.

Features [edit]

With the help of SSI, various information can be dynamically integrated into a website. Some examples are given below. When setting up SSI, it is important that the provider also supports this function and that the corresponding files have the extensions .shtml, .shtm or .sht and not .htm or .html. Otherwise, websites will be displayed incorrectly because the server cannot read the instructions.

The basic form of SSI commands looks like this:

<!--#befehl parametername1="wert" parametername2="wert" -->

The command has already been implemented in these examples:

  • Insertion of dates: in this way, for example, the topicality of a website can be documented.
Example:
  • Copyright and dynamic date: once inserted, this data does not have to be updated permanently.
Example:
  • Notes on updates: a useful function for users such as bots, which shows how up-to-date the respective page is.
Example:
  • Referrer: in this case, a "back" function can be inserted with SSI, with the help of which the user can return to the previous page.
Example:
  • Counter: With the help of the exec command, a counter can be entered in the HTML document via SSI.
Example:
  • Include the web address when saving an HTML document as a website.
URL:
  • Inserting text modules, e.g. navigation
<!--#befehl parametername1="wert" parametername2="wert" -->

Benefits for SEO [edit]

SSI functions have neither a positive nor a negative effect on search engine optimization. Due to the increasing server speed, crawlers can now handle SSI without any problems. However, it should be noted that the document extension changes when data is saved for SSI. In order to avoid losses when passing on Link Juice, the old files should be redirected to the new ones via htaccess.

One benefit that can be achieved with SSI, however, is the ease with which website content can be dynamically updated. The SSI can also be used to indicate that the website is up to date. Since both elements can be important for the ranking in the course of the freshness update, SSI can be rated positively for SEO in this case.

Web links [edit]

SSI