View Full Version : How to enable server side includes (SSI) on Siteground server
gazanson
11-02-2006, 01:15 AM
I'm wanting to enable server side includes (SSI) on my Siteground hosted website to include a menu on multiple pages. I have followed instructions for writing and loading the .htaccess script (instructions I got elsewhere off the web) but this doesn't seem to work on the Siteground server. Any suggestions would be greatly appreciated. Gary
Hello Gary,
Our servers are fully compatible with Server Side Includes and there is no problem to use this on your site. I have created a very basic SSI example to show you that it does work fine.
http://obor.org/ssi/
what I have made is to add a .htaccess file with the following content
http://obor.org/ssi/htaccess.txt
and then I have created the following index.shtml file
http://obor.org/ssi/index.txt
After that I have chmoded this file to 755 and everything have started to work fine. All of this modifications can be made with your File manager under your cpanel. More info on how to use the File manager can be found here
http://www.cpanel.net/docs/cpanel/File_Manager.htm
and more info on how to use SSI can be found here
http://httpd.apache.org/docs/1.3/howto/ssi.html
phillyre
01-07-2007, 09:54 AM
My site ground web site is phillyref.com.
I could not get the ssi example to work. I placed an .htaccess file in the same directory as a sample file. I also placed a copy of the .htaccess file in the parent directories up to my root. Permissions for all the .htaccess files were set to 755. The content of the .htaccess file is:
Options +Includes
AddType text/html .shtm
AddHandler server-parsed .shtml
The sample file displayed the html text but did not generate output for the SSI directives.
Any advice would be appreciated.