The Little Guy Posted October 11, 2007 Share Posted October 11, 2007 using an .haccess file, how can I disable php in a certain directory, and all of the sub directories of that directory? If possible (but not necessary) I would like to out put the files as if they were txt files. Quote Link to comment https://forums.phpfreaks.com/topic/72698-solved-htaccess-deny-php/ Share on other sites More sharing options...
The Little Guy Posted October 11, 2007 Author Share Posted October 11, 2007 OK... I contacted support, and they were able to fix my problem!! the final .htaccess file: RemoveType .php AddType application/x-httpd-php-source .php AddHandler application/x-httpd-php-source .php Quote Link to comment https://forums.phpfreaks.com/topic/72698-solved-htaccess-deny-php/#findComment-367313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.