Web Hosting Talk







View Full Version : .htaccess & SSI


SepsisNet
03-19-2001, 12:06 AM
Hello!

Currently, most of my pages are SSI (SHTML). However, I prefer naming them *.HTML. So my question is:

- Is there a possibility of having an .htaccess with some code and forcing Apache into parsing *.HTML as *.SHTML?

Any input would be appreciated. And better yet, if you know the exact code and you can help me out of this.


Thanks in advance,

Ian

Phiberop
03-19-2001, 12:28 AM
Hello,

The only way that I know of doing this is to add a handler like this:

AddHandler server-parsed .html
AddType text/html .html

This will work however, this will seriously degrade performace for Apache will process every html file your users access which is not a very good idea.

Hope this helps,

Mike

Chicken
03-19-2001, 02:55 AM
Agree and that is why there is another extension set up (so you can tell the server which files to parse). Then again, if it is every file, I suppose it doesn't matter much.

*crawls back into chicken cave*

SepsisNet
03-23-2001, 09:35 PM
every page is SSI, i just don't like the .shtml extension. personal preference.

Phiberop - thanks! it works like a charm! :)