Sample Header Ad - 728x90

Deny access to subfolder and file with .htaccess

4 votes
3 answers
27594 views
I need to deny access to configuration files under some subfolder. Currently I have this rule but it doesn't work: Order deny,allow Deny from all If I go to www.mysite.com/foo/foo2/file.xml, I can view the file. I need to deny all file accesses into fooand bar recursively **UPDATE** I have tried this this configuration but have an Internal Error Order Allow,Deny Deny from all
Asked by stecog (2341 rep)
Aug 6, 2015, 01:49 PM
Last activity: Aug 20, 2018, 07:33 AM