|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-02 13:06 UTC] earnpin at it-lodge dot com
When both server-parse exist in httpd.conf, one will not work. How to make Apache to parse .php as .html and then follow by parsing .shtml as .html.
My conf is as followed:
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
AddType text/html .shtml .html
AddHandler server-parsed .shtml .html
-----------
Help please,
Cheers,
Earnpin Lee, earnpin@it-lodge.com
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Actually, it's not all THAT convoluted: index.html <where .html is going to be processed by SSI...not reccomended behavior> <!-- your ssi stuff here --> <!-- #include virtual="/page/to/be/parsed/by.php" --> But I would also point out that PHP is a much more flexible structure than SSI, while covering (more or less) all of SSI's feature set, and you should really look closely at any solution that requires this workaround.