SSI - File extensions |
SSI - File extensions |
Dr Z |
Aug 17 2007, 09:21 PM
Post
#1
|
Advanced Member Group: Members Posts: 221 Joined: 23-August 06 Member No.: 11 |
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 |
Aug 17 2007, 09:36 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Didn't you htaccess it to get html files parsed for SSI at you previous host?
|
Dr Z |
Aug 18 2007, 11:47 AM
Post
#3
|
Advanced Member Group: Members Posts: 221 Joined: 23-August 06 Member No.: 11 |
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 |
Aug 18 2007, 03:44 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I thought it would.
A host that enabled SSI for HTML files server-wide would be a silly host, putting unnecessary load on the server. |
Lo-Fi Version | Time is now: 25th April 2024 - 02:08 PM |