Problem with .htaccess

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
MaxMM
Forum Newbie
Posts: 6
Joined: Wed Jan 31, 2007 10:56 am

Problem with .htaccess

Post by MaxMM »

Hi
I am having some problems with .htaccess. It does not work proparly.
Please let me know what am I doing wrong.


I created and placed that file [ .htaccess ] in a folder where I dont want people to access my files/folders directly on the web
and inside the file I wrote:

# no one gets in here!
deny from all

But it does not work.. I can still access the files/folders from web http

Thank you.
MM
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

add this

IndexIgnore *
MaxMM
Forum Newbie
Posts: 6
Joined: Wed Jan 31, 2007 10:56 am

Post by MaxMM »

where?
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post by louie35 »

we are talking about the .htaccess file so in there
MaxMM
Forum Newbie
Posts: 6
Joined: Wed Jan 31, 2007 10:56 am

Post by MaxMM »

if you meant like this:


# no one gets in here!
deny from all
IndexIgnore *

Still doest work.. I can still access the folder...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Are you on an apache server?
MaxMM
Forum Newbie
Posts: 6
Joined: Wed Jan 31, 2007 10:56 am

Post by MaxMM »

yes.

Is it possible that I dont have permission to do that on my server?

Thank you.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Possible, yes. Likely, no. But you could always check with your host to see if they have disallowed it.
MaxMM
Forum Newbie
Posts: 6
Joined: Wed Jan 31, 2007 10:56 am

Post by MaxMM »

do you know how to check if I have permission?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Ask your host.
Post Reply