Help - Search - Members - Calendar
Full Version: SSI - File extensions
HTMLHelp Forums > Programming > Web Server Configuration
Dr Z
I just signed up with cphosting.com (peter 1968 recommendation). Prior to signing up I asked them about SSI. They replied that SSI was enabled by default.

However, when I started to upload, I checked just the index page, and realized that SSI include directive was not working (looking at the page source of the parsed file).

When I wrote to them (e-mail), I received the following reply:
"SSI pages have extensions with .shtml so index.html should be renamed to index.shtml. please rename your pages and try running your ssi page and they will workfine."

The following was my reply to their reply (I have not received an answer yet):
"This is rather difficult and time consuming, since every page uses the include function. Therefore, it would mean renaming every file, renaming
all the links, and possiblity of errors. Furthermore, I have Apache (under windows) installed in my own computer for years and I have tested all
files, and SSI is working for html extensions."


I need a sanity check... Am I halucinating or am I right that .html extension on files that use the include directive should be fine with SSI?
pandy
Didn't you htaccess it to get html files parsed for SSI at you previous host? wink.gif

Dr Z
Pandy,

You triggered a quick thought. I looked at the .htaccess file on the server..... Then, I added "AddType text/x-server-parsed-html .html" to the file and everything is OK now. Thanks!
pandy
I thought I would. tongue.gif

A host that enabled SSI for HTML files server-wide would be a silly host, putting unnecessary load on the server.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.