Click to See Complete Forum and Search --> : SSI Question
Wrestlecar Webmaster
Aug 26th, 2000, 03:26 PM
When I use SSI on a webpage, do I need to have the page end in .shtml or can I have it end in .html?
parksie
Aug 26th, 2000, 04:43 PM
It depends on the server. Mostly, they need to be .shtml. This is because it takes the server longer to return the page if it needs to parse it. If it is set to parse all .html files, then it is a lot slower than letting the user set what files use SSI. Your username suggests you are a webmaster, so you'd have to read the docs for your server. If you're using Apache then I can help you out with this.
Wrestlecar Webmaster
Aug 26th, 2000, 04:47 PM
We are on a linux server. I would like to use .html if possible, because I have already configured all the pages for that.
parksie
Aug 26th, 2000, 04:48 PM
It's not the computer it's running on, but the configuration of the actual server program. What Web server do you use?
Wrestlecar Webmaster
Aug 26th, 2000, 05:20 PM
I have a friend hosting me. Basically its UNIX if thats what you are getting at. I dont completely understand.
parksie
Aug 26th, 2000, 05:26 PM
The easiest way is to create two SSI files, one ssitest.shtml, and one called ssitest.html
Upload them, then test them from a web browser and see which one works.
Since it's POSIX-based, it'll most likely be Apache, in which case there will be lines similar to the following in your httpd.conf file:
AddType text/html .shtml
AddHandler server-parsed .shtml
...for .shtml, and:
AddHandler server-parsed .html
...for all .html files.
noone
Aug 26th, 2000, 10:07 PM
This link has some info on configging Apache:
http://www.builder.com/Servers/ApacheFiles/082400/?tag=st.bl.3880.pro_hbl_af082400
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.