.htaccess to deny all files within a directory

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
yurik
Forum Newbie
Posts: 7
Joined: Tue Feb 12, 2008 3:52 pm
Location: Oushuu, Japan

.htaccess to deny all files within a directory

Post by yurik »

I'm currently denying access to all files in a directory by chmod 700.

I don't want to place another .htaccess file in that particular directory as I would like to have only 1 .htaccess file in all my site. Is there any way to do this ?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: .htaccess to deny all files within a directory

Post by pickle »

Not sure what you're asking. It sounds like you don't want to use an .htaccess file, and you've got a solution that doesn't involve one - what's the problem?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply