Forum Moderators: phranque
Now he is starting with php. For his normal html-pagges an entry like
AddType x-mapp-php4 .html
in his .htaccess-file works perfectly fine, but an additional
AddType x-mapp-php4 .shtml
does not make the .shtml-pagges get parsed. On his shared webspace he has no access to httpd.conf. Any idea?
Any help is well appreciated.
Filetypes .shtm and .shtml refer to files which need to be parsed for server-side includes (on either IIS or Apache, and probably many other less-popular servers as well).
For more information on making SSI and PHP co-exist, try this search [google.com].
Jim
Indeed he had been using some ssi-templates (so that was the obscure reason), which in fact will not be nescessary once running php, because he might be able to do the same with echo inside an include-routine.
Now what should he add to his .htaccess?
Will it work once the ssi-includes are deleted?
If it is, I do that on one site. All I had to do was add this to the htaccess and it worked like a charm.
AddHandler application/x-httpd-php .shtml
Any ssi includes will stop working (did for me anyway), so make sure to thoroughly test that there are none remaining.