Forum Moderators: phranque

Message Too Old, No Replies

can I make the server think .html, is .shtml?

I need to do includes...

         

Craig_F

3:23 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



I don't know server side stuff very well at all, so I'm wondering if there is any way to make the server think .html, is .shtml?

I'd like to do this for a client that has a large site running on a script that is generating .html files. It's not worth hiring a programmer to fix the script (at least right now), but if I could make some changes on the server that would suddenly allow me to do includes it would be a big help on my end.

Is this possible? TIA!

encyclo

3:29 pm on Feb 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No problem in Apache, just put this in your root-level .htaccess:

AddHandler server-parsed .html

If you have a dedicated server, you can put it in the httpd.conf instead. I don't think it's possible in a shared environment on a Windows server running IIS, but of course if you have administrative access to the IIS configuration, you can set it there.

Craig_F

3:53 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



great! thanks encyclo, this is going to be a major help to me. I'll give this a shot soon and report back.