Forum Moderators: phranque

Message Too Old, No Replies

SSI on selected HTML pages only?

Is it possible to have the server parse only selected html pages as shtml?

         

dbr1066

4:32 am on Aug 27, 2003 (gmt 0)

10+ Year Member



Hi,

I know that it is possible to create .htaccess instructions so that files with an .htm extension are parsed, allowing SSI benefits for an entire site. But is it possible to specify only specific .htm files that I want to be parsed - while still maintaining the current .htm file extension?

(I'd like to use server side includes on files that are currently doing very well in Google, so keeping the same URL would be a great benefit)

Any tips gratefully accepted!

jdMorgan

4:39 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dbr1066,

Welcome to WebmasterWorld [webmasterworld.com]!

> But is it possible to specify only specific .htm files ...

Yes, use XBitHack in Apache mod_include [httpd.apache.org].
Setting the various execute permission bits then controls various aspects of SSI and Last-Modified dates.

Jim

dbr1066

1:39 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



Thanks Jim,

I was only vaguely aware of the XBitHack method, being more familiar with .htaccess. I'll have to see if my web host will allow it.

Thanks for the tip.

David