Disabling PHP for specific directories with Apache

To disable PHP for a specific directory when running Apache web server, just use the php_value directive inside a location, directory or files block in your config file.

See the example below for details:

<Location /somedir>
    php_value engine off
</Location>

Last updated: 01/08/2010