Server Side Includes (SSI) is a basic server-side language, which allows you to include text from a specified source inside a web page. In the most typical case, the text from a file is included in a second one, providing a site the sense that it is dynamic. For instance, in case your website comprises of 10 webpages, five of them can easily contain the content of some file, such as horoscope.txt. In case you change this text file, the new content is going to appear on all of the five pages, which will permit you to bring up to date your site faster and easier than if you had to change an element of all five web pages. Server Side Includes is at times utilized to contain the output of simple commands, scripts or functions as well - a hit counter that's displayed on the website, the current time and date or the customer's IP address. Every webpage that works by using SSI should have a particular extension - .shtml.
Server Side Includes in Website Hosting
It is possible to use Server Side Includes with all of the website hosting
plans we offer and activate it separately for each and every domain name or subdomain in your own hosting account. This can be accomplished with an .htaccess file, which needs to be placed in the folder in which you wish to use SSI and you have to type in a few lines of code in that file. You'll find the code within our Knowledgebase area, so you're able to simply just copy and paste it, as you do not need any programming expertise to benefit from all of the characteristics that our services have. If you have already built your site and you want to employ Server Side Includes later on, you have to ensure that you rename the files from .html to .shtml and fix the links on the website, or else SSI is not going to work.
Server Side Includes in Semi-dedicated Servers
It won't take you more than a moment to activate Server Side Includes if you have a semi-dedicated server
plan through us. When you decide to activate this feature, you must set up an .htaccess file in the main folder for the domain name or subdomain in which you want SSI to be active. In that file, you need to copy and paste some code, that you can find in the FAQ article we have devoted to SSI. You'll find the latter inside the Help area of your Hosting Control Panel, so you do not require any prior knowledge about this kind of things. The only 2 things you need to take care of are renaming all of the webpages that shall utilize Server Side Includes from .html to .shtml and editing all the links in your site, to make sure they lead to the updated files.