Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Force PHP5 to use .php extension in a Directory  (Read 2434 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
Force PHP5 to use .php extension in a Directory
« on: March 02, 2014, 09:57:43 pm »
Force PHP5 to use .php extension in a Directory

If you wish to set the PHP5 to run for a specific directory and only that directory and it's sub directories it can be done with the following code in a .htaccess

<FilesMatch .php>
SetHandler application/x-httpd-php5
</FilesMatch>

If you're looking to run PHP5 across your entire account make use of the PHP Configuration option page found in your accounts cPanel.
----