Other Server-Side Scripting

ID #166

Can I have all .html files parsed as .shtml SSI files?

Applies to: Grid System, Managed Servers, VPS

Yes, just create a file named .htaccess (include the '.' in the filename) and put that file in your /htdocs/www/ directory.

In the .htaccess file you need this 1 line:

AddHandler server-parsed .html

Now all files in any directory under /htdocs/www/ with filenames ending in .html will be parsed as Server Side Include (SSI) files, just like they would be if they had an .shtml extension instead.

If you only want this effect in a certain subdirectory tree, just put the .htaccess file in that subdirectory instead of putting it in /htdocs/www.

To turn this effect off in some subdirectory where it has been turned on by an .htaccess file in a directory above it, make a new .htaccess file in the directory where you want to turn it off that has this 1 line:

RemoveHandler .html

Last update: 2010-10-03 13:08
Author: FAQ Admin
Revision: 1.3

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ