Forum Moderators: phranque

Message Too Old, No Replies

Possible to use an .htaccess to block recursive .htaccess files?

         

denyer

3:44 am on Feb 14, 2007 (gmt 0)

10+ Year Member



eg, To use /dir/.htaccess to block /dir/uploads/.htaccess from being processed?

Or would this need to be done via <Directory> in httpd.conf?

Something like:

<Directory /var/www/html/dir/uploads>
php_flag engine off
AllowOverride None
</Directory>

Thanks for any help.

jdMorgan

4:02 pm on Feb 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd advise moving any code you don't want executed unconditionally out of the lower-level .htaccess files, and into either higher-level .htaccess files or into httpd.conf, conf.d, etc. -- if the conditions for execution can be determined and controlled in those higher-level files. Sorry for the general answer, but the details needed for anything more specific were missing.

Jim