DynastyHost
11-01-2000, 03:14 PM
Can SSI be done without renaming the file to .shtml?
![]() | View Full Version : SSI w/out .shtml DynastyHost 11-01-2000, 03:14 PM Can SSI be done without renaming the file to .shtml? Félix C.Courtemanche 11-01-2000, 04:18 PM yes, simply specify that you want the extension .html (for example) instead of shtml to be parsed as ssi. Howeverf, that will slow down the server, since every .html pages will be parsed. The change has to be done in your httpd.conf or srm.conf file. Annette 11-01-2000, 04:54 PM Alternately, you could specify such parsing for a single domain in a .htaccess file, pleaced in the root directory of that domain. It will still tend to slow down retrieval of pages on that site. JustinK 11-01-2000, 08:04 PM Dang, that's what I was going to say (.htaccess)! :) I was in class though and I don't trust the school people with my passwords. The line for making other extensions parsed is: AddHandler server-parsed .html replace .html with whatever extension you wish. GeorgeC 11-02-2000, 10:01 PM Of course, most web hosts discourage enabling SSI without discrimination, due to the overload it puts on the server. p.s: I have SSI mass enabled on all html files as well :) Félix C.Courtemanche 11-02-2000, 10:27 PM Personally (as a web host) it is not the overload on the server that concerns me, but the fact that pages tends to ahve a .5 longer delay before loading (because it is being parsed). I find this to be quite slow, when you know that you can have a relatively more complex php script doing much more taking .02 seconds to load :) Anyway, in my opinion, renaming your file .shtml isn't a real big deal and it will make your site faster. DynastyHost 11-02-2000, 10:45 PM The problem with renaming it to .shtml is the search engine will not pick up if you already submit it Félix C.Courtemanche 11-02-2000, 10:51 PM hmmm yah true. there are other possibilities than simply put all the html to SSI, like redirecting any missing .html to an equivalent .shtml for example. That would only generate due system load (well a bit more than usual, but less that broad ssi parsing). I believe that could be done with a .htaccess file fairly easill. Or a script as the .404 error. Anyway, I still don't think that puting all the .html to .shtml is a good idea... unless it is for 1 site only and that the site does not require an excellent speed. MSW 11-03-2000, 11:25 AM You are correct about the search engines; hoever, you really shouldn't be concerned about that considering you need to resubmit (most of the time) to the search engines every month or so for a fairly effective campaign. Chicken 11-03-2000, 09:40 PM While your .htaccess'ing things, could you throw in a redirect line that directs file.html to file.shtml (I know you can do this), *and* have that work for the s-engines? Not sure this would help or not, but might be worth a shot? |