HostingHosting featuresSpanish version

Support article

What is SSI in hosting and what is it for

Discover what SSI is, how it works in .shtml files, and when it can be useful on a static website.

Published: 23/06/2026Updated: 23/06/2026

Introduction

SSI means Server Side Includes. It is not a type of hosting. It is a server feature that lets you place small instructions inside an HTML page so the server can process them before sending the page to the browser.

It is a simple technology, but it can still be useful on static websites or lightweight projects where you do not want to depend on PHP or a full CMS.

What SSI is used for

SSI is mainly used to reuse content blocks or show information generated by the server.

For example, it can help you:

  • Include a shared header.
  • Reuse a footer.
  • Show the server date.
  • Show the last modified date of a file.

How it works

Pages that use SSI are often saved with the .shtml extension so the server knows it must process them.

A typical SSI directive looks like this:

<!--#echo var="DATE_LOCAL" -->

Or like this, to include another file:

<!--#include virtual="/includes/footer.html" -->

When the page is requested, the server processes the directive and sends the final HTML to the visitor.

How to use SSI in your hosting

1. Create a .shtml file

Instead of index.html, you can use:

index.shtml

2. Add the SSI directive

Insert the instruction in the place where you want the processed content to appear.

3. Upload the file to public_html

You can do that from DirectAdmin, cPanel or FTP.

4. Check the result in the browser

If SSI is working, you will see the generated output rather than the raw directive.

When SSI makes sense

SSI can be useful if:

  • You have a simple HTML website.
  • You want to reuse common blocks without copying and pasting them everywhere.
  • You only need very basic dynamic behavior.

If your site needs complex forms, databases, login systems or a shopping cart, PHP, WordPress or another full solution is usually a better fit.

Useful tips

  • Use .shtml only where needed.
  • Be careful with syntax.
  • Keep includes organized.
  • Do not expect SSI to replace a full server-side language.

Frequently asked questions

Is SSI the same as PHP

No. SSI is much simpler and far more limited.

Can I use SSI in WordPress

Usually there is no need, because WordPress already has its own template system.

Does SSI affect SEO

Not by itself. Search engines receive the final processed HTML.

Conclusion

SSI is a lightweight server feature that can still be useful on static websites that need small dynamic elements such as includes or server-generated information.

It is not the most modern option for every project, but it remains practical in simple cases.