Forum Moderators: phranque
Is there a way to use .htaccess to allow a single page (foo.html) to include an SSI directive? If so, what is the code I would use in that .htaccess file?
Thanks for any advice...
Since adding my original post, another contact said to use:
<Files foo.html>
AddHandler server-parsed .html
</Files>
So if that sounds about right, then that will be the likely approach...
If I had more than one file (let's say 3 pages out of 100), would I need to repeat your code 3 times in the htaccess, or, can I reference multiple files, as in:
<Files foo.html foo2.html foo3.html>
AddHandler server-parsed .html
</Files>
Each of those 3 is separated by a single space -- is that correct or should a comma be used?
Thanks for any feedback....
Try <FilesMatch> instead:
<FilesMatch "^(File1¦File2¦File3)\.html$">
AddHandler server-parsed .html
</FilesMatch>\
Jim