Search code examples
php.htaccessmime-types

Reason ForceType application/x-httpd-php on .htaccess not working at all


I have tried to use:

.htaccess

<Files client>
 ForceType application/x-httpd-php
</Files>

client file

<?php 
     echo "FOO BAR";
?>

Just to test, but the server is not parsing the client file, it just serves it up as a file download. I tried SetHandler also without luck.

UPDATE

I'm using MediaTemple and the have there own way of doing things. I can't use ForceType bu I can use this.

<Files client>
     SetHandler php-script
</Files client>

Solution

  • I'm using MediaTemple and the have there own way of doing things. I can't use ForceType bu I can use this.

    SetHandler php-script