Server Side Includes (SSI) is a common server-side scripting language, that is employed to add the content of one file inside a second file. It is used typically with online content and it can help make a static HTML site a lot more dynamic. If you need to have a daily quote shown on multiple web pages within your site, for example, you can create a text file and replace the quote inside it daily. All webpages in which this file is included will display the updated quote, so you'll not need to alter all of them manually each time. SSI can also be used to include the output of simple functions rather than a static file - for instance, the viewer's IP address, a hit counter or the current time and date. This way, you can make your internet site look a lot more professional and a lot more appealing to the visitors. Pages that use SSI use a .shtml extension.
Server Side Includes in Website Hosting
All Linux website hosting that we offer you support Server Side Includes, so that you can add dynamic components to your static website which you host on our cloud platform. By making a blank .htaccess file and entering a few lines of code within it, you'll be able to enable SSI for a domain name or perhaps a subdomain. The file involved needs to be within the particular folder where you will make use of SSI and you'll get the code inside our Frequently Asked Questions section, so you don't need any kind of coding experience. Our 24/7 tech support staff will also be able to assist you with enabling Server Side Includes if you're not absolutely sure how to proceed. You should additionally make sure to modify the extension of all your files which will utilize SSI from .html to .shtml and make sure that the links on your site lead to the correct files.
Server Side Includes in Semi-dedicated Servers
It will not take you over a moment to enable Server Side Includes in case you have a semi-dedicated server plan with our company. When you decide to enable this feature, you need to set up an .htaccess file in the main folder for the domain name or subdomain where you would like SSI to be enabled. In this file, you must copy and paste some code, which you'll get in the FAQ article that we have dedicated to SSI. You can find the latter in the Help area of your Hosting Control Panel, so you don't need any prior knowledge of such matters. The only two things you ought to deal with are renaming all of the web pages that shall employ Server Side Includes from .html to .shtml and changing every one of the links in your site, to ensure that they lead to the renamed files.