Hi,
is there a possability to configure Apache2 (v2.0.49) together with
PHP (v4.3.7, installed as a module), so that URLs ending on
".php" AND on ".php.htm"
are processed by PHP, but URLs ending only on
".htm"
are not processed by PHP?
I tried the following in "httpd.conf":
LoadModule php4_module [...]php4apache2.dll
AddType application/x-httpd-php php.htm php
but this does not work (just reacts on "php" but not on "php.htm").
If I remove "htm" from the "mime.types" in the line
text/html html htm
it works, but then all URLs ending on "htm" are processed by PHP.
And if I use a "RedirectMatch" directive like
RedirectMatch (.*)\.php\.htm$ $1.php
I need to have a second file with the suffix ".php" next to the one
with the suffix ".php.htm".
Any ideas?
Thanks in advance..
is there a possability to configure Apache2 (v2.0.49) together with
PHP (v4.3.7, installed as a module), so that URLs ending on
".php" AND on ".php.htm"
are processed by PHP, but URLs ending only on
".htm"
are not processed by PHP?
I tried the following in "httpd.conf":
LoadModule php4_module [...]php4apache2.dll
AddType application/x-httpd-php php.htm php
but this does not work (just reacts on "php" but not on "php.htm").
If I remove "htm" from the "mime.types" in the line
text/html html htm
it works, but then all URLs ending on "htm" are processed by PHP.
And if I use a "RedirectMatch" directive like
RedirectMatch (.*)\.php\.htm$ $1.php
I need to have a second file with the suffix ".php" next to the one
with the suffix ".php.htm".
Any ideas?
Thanks in advance..
Kommentar