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?
Printable View
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?
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.
We are on a linux server. I would like to use .html if possible, because I have already configured all the pages for that.
It's not the computer it's running on, but the configuration of the actual server program. What Web server do you use?
I have a friend hosting me. Basically its UNIX if thats what you are getting at. I dont completely understand.
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:
...for .shtml, and:Code:AddType text/html .shtml
AddHandler server-parsed .shtml
...for all .html files.Code:AddHandler server-parsed .html
This link has some info on configging Apache:
http://www.builder.com/Servers/Apach...o_hbl_af082400