Web Servers General Talk - Apache2 and PHP, react on suffix "php.htm"

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > June 2004 > Apache2 and PHP, react on suffix "php.htm"





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache2 and PHP, react on suffix "php.htm"
Jam Hinnel

2004-06-23, 5:48 pm

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.
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..
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com