View Full Version : ssi question
galagrant
02-01-2001, 06:29 PM
Hi,
I no that I can name my pages .shtml to use server side includes, but is there a way to just make a directory use them, without renaming the pages?[nbsp][nbsp]I am doing development for someone else, and I don't want to have to keep changing the page names.
Thanks,
Gala
Shalazar
02-01-2001, 07:01 PM
You could put an .htaccess file in the directory you wished to convert, with the line:
AddType text/x-server-parsed-html .html
That will parse all .html files like .shtml files allowing you to put ssi's in there without changing the extensions.[nbsp][nbsp]However, it will slow down the presentation of regular .html files, and it will place an extra load on the servers.[nbsp][nbsp]If FQ ever decides to change its configuration, then your html files may no longer be parsed in that way.
There are certain sets of extensions for a reason.[nbsp][nbsp]It's best to use what's standard for what you want to do.
You may wish to refer to these threads for more discussion:
http://www.aota.net/ubb/Forum1/HTML/000314.html
http://www.aota.net/ubb/Forum1/HTML/000112.html
http://www.aota.net/ubb/Forum3/HTML/000299.html
http://www.aota.net/ubb/Forum2/HTML/000117-1.html
galagrant
02-01-2001, 07:12 PM
Perfect.[nbsp][nbsp]Thanks.[nbsp][nbsp]This is only for temporary testing, so I am not worried about slowness, or about Futurequest making changes in the future, this will all be done in 3 weeks.
Thanks again,
Gala
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.