FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.
SSI from .html rather than .shtml?
Posted on 25 January 2004 10:07 PM
Question:

On your pages, it says that I need to use .shtml pages for SSI calls, but I would like to know if it is possible to simply add the line:

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

to my .htaccess file and still keep my files as .html . I have been able to do this on other Apache servers, so I'm hoping that I can the same with you.

Also, if I can do this, what directory should I place my .htaccess file in?

Answer:

Although you do have the ability to do what you propose, it is recommended that all files be named in accordance with established naming conventions.

As stated in the FutureQuest® Terms of Service under "Established Naming Conventions":
"...content delivered with the use of SSI should originate from files that are named with the .shtml or .shtm file extensions... Account Holders that do not use established naming conventions are at risk of abusing server resources."

The primary reason to call your SSI pages '.shtml' is so that the server knows for certain that it is serving a dynamic page. If you use SSI calls within '.html', then the server will think it is just a static html page.

Please note that there may be changes in the future that will affect dynamic and static pages, ie load balancing, HA delivery, etc. In other words, even though we may currently recognize embedded SSI within '.html' files, at some point in the future we reserve the right to disable this functionality in the interest of advanced load balancing.

You should place your .htaccess file within your 'www' directory.