Web Analytics Made Easy -
StatCounter Disable PHP in certain directories - CodingForum

Announcement

Collapse
No announcement yet.

Disable PHP in certain directories

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable PHP in certain directories

    Is it possible to disable PHP in certain directories of a domain and have enabled in other using .htaccess or any other method.

    Example:

    http://www.mydomain.com - PHP disabled
    http://www.mydomain.com/scripts - PHP enabled

  • #2
    Edit your httpd.conf, or create an htaccess file for the directory you want to turn php parsing off and add this line :

    php_flag engine off
    HTH.

    Comment

    Working...
    X