0

I'd like to turn PHP off within a folder, with the exception of certain files (e.g. disabling PHP for all files but test1.php and test2.php, or test*.php). I believe PHP can be turned off for a folder by placing "php_flag engine off" within that folder's .htaccess, but how can I still have certain specific php files work?

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Kadence
0

writing this in the hpptd.conf file will restrict those php files to parse -

<Location />
ForceType text/html
</Location>
0

Edit: Saw only your first post earlier. I'll look up ForceType, thanks.

Edited by Kadence: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.