PHP Magic quotes on for specific Dirs September 23, 2004
If you need to specify that a certain dir is to have gpc_magic_quotes On or Off you need to add this to the end of Apache’s httpd.conf file (On a Raq 4 it’s located in /etc/httpd/conf):
<Directory /home/sites/path/to/dir/>
AllowOverride ALL
</Directory>
Then you need to put an .htaccess file in the uppermost dir that you need to apply it to (this works recursively) like this:
php_flag magic_quotes_gpc On
P.S. You can quickly see the absolute path to the directory by scanning down the httpd.conf file till you find the site you need.