Forum Moderators: coopster

Message Too Old, No Replies

SSI and htaccess problems.

Simple solutions, I just don't know...

         

tokey666

4:58 pm on Feb 8, 2008 (gmt 0)

10+ Year Member



Alright, I am building html pages. I use SSI on the HTML pages and use .htaccess to parse the SSI so I don't have to use .shtml. Using this code:

AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .html

NOW, there are some pages that have PHP inside the HTML code. And I have read about using htaccess to parse php inside html pages using THIS code:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

Well.....they don't work together well. Errors come up. I really don't know what the code means....I know what it DOES, but not what it means.

SO, is there a way to COMBINE these two? So that I can use SSI on .html pages and also parse PHP inside the .html pages?

Help would be MORE than appreciated....

jatar_k

5:08 pm on Feb 8, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the simple answer is no, not really, you have to pick one or the other

the odds are that you could parse php in html pages and do with php whatever your ssi is doing

SSI is not very complex, you should be able to switch all your SSI to PHP easily enough

tokey666

5:45 pm on Feb 8, 2008 (gmt 0)

10+ Year Member



Well.....ok .... :)

I will work around the issue then. Like you said, its not hard to change the SSI to PHP includes. I will just do that. NO biggie. I guess I'm just feelin lazy today. haha

Thanks for the help!