What is SSI?

RSH Web Services
2 min readMar 15, 2021

--

Server Side Includes (SSI)

A simple interpreted server-side scripting language used almost exclusively for the web. It is most useful for including the contents of one or more files into a web page on a web server, using its “#include” directive

This could commonly be a common piece of code throughout a site, such as a page header, a page footer and a navigation menu. SSI also contains control directives for conditional features and directives for calling external programs

For a example, we could use SSI Calls on this web page to call our Blog Navigation links in the left column. This would allow us to make changes to the navigation by changing only 1 file instead of changing hundreds of individual pages. But as it turns out we are actually using PHP calls which work in almost the exact same way
It is supported by Apache, LiteSpeed, nginx, IIS, As well as W3C’s Jigsaw, It has its roots in NCSA HTTPd

How do Server Side Includes work?

When someone views your web page, your visitor’s browser sends a request for your HTML page to your Web Server. The server grabs the page, then sees the SSI command (or “call”) and knows that you wanted the Web Server to do something to the HTML file before giving the HTML file to the visitors browser. Because of the way SSI calls work you wil not see the SSI code, only what the SSI call is calling for

How do I use Server Side Includes on my web site?

Our Web Servers requires that all web pages using SSI calls are named with the “.shtml” extension instead of “.html”. Otherwise all of your “Include Calls” will be ignored

What can I use SSI for?

Why I can not Use SSI with .html pages?

Continue Reading Here

Originally published at https://rshweb.com.

--

--

RSH Web Services
RSH Web Services

Written by RSH Web Services

0 Followers

From Personal, Professional & Business Websites. Our goal is to provide the highest quality Hosting Services. Over 20 years experience - We know a thing or two

No responses yet