Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to use Apache content negotiation (MultiViews option) with PHP?

0
10 Posted

Is it possible to use Apache content negotiation (MultiViews option) with PHP?

0
10

If links to PHP files include extension, everything works perfect. This FAQ is only for the case when links to PHP files don’t include extension and you want to use content negotiation to choose PHP files from URL with no extension. In this case, replace the line AddType application/x-httpd-php .php with: # PHP 4 AddHandler php-script php AddType text/html php # PHP 5 AddHandler php5-script php AddType text/html php This solution doesn’t work for Apache 1 as PHP module doesn’t catch php-script.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123