Most of my company site is in .htm files, and I make extensive use of SSI - for template purpose, particularly navigation bars.
As I don't have access to Apache2 on the domain server, I use an .htaccess file.
Problem is, when I include php to be parsed in .htaccess, I not only get also get the navigation bars, but the php code is also displayed on the screen.
Here's my .htaccess code:
<Files .htaccess>
order allow,deny
deny from all
</Files>
AddType text/html .htm .php
AddHandler server-parsed .htm .php
Options Indexes FollowSymLinks Includes
Without the htaccess codes, the screen displays correctly, but the navigation bars do not display.
Is there a way of coding the .htaccess file to permit correct operation of the php coding and have SSI with php files?
[Edit] I have overcome my immediate problem by using php includes. I should be able to get these to work on the htm pages, too, with .htaccess set up so that I can leave the file extensions as htm, thereby not disrupting SE ranking.
But I would still be interested if anyone has an answer to the original question, for futre reference - and understanding of what the .htaccess file is doing.[/Edit]
[Further Edit - php includes working so well will probably not go back to SSI anyway. Problem therefore resolved]