Apache2 and PHP, react on suffix "php.htm"
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers General Talk > Apache2 and PHP, react on suffix "php.htm"




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-23-04 10: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..





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:51 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register