PDA

View Full Version : Restricting Directory access


mustang
10th January 2006, 09:01
Hi Guys,

I have a folder (not the root) and want to restrict the directory listing. Can I do it in an htaccess file and if so, how?

Many thanks,

Rob Holmes
10th January 2006, 09:06
Here we go :)

http://www.javascriptkit.com/howto/htaccess.shtml

Loads of examples on there :)

Rob

Rob Holmes
10th January 2006, 09:09
to create a .htaccess file simply open notepad - enter your chosen codes then save it as htaccess.txt

Then upload it to your web server and rename it to .htaccess

At this point it will turn into a hidden file and you will probably not be able to see it using your ftp client

Hope this helps,

Rob

mustang
10th January 2006, 09:12
to create a .htaccess file simply open notepad - enter your chosen codes then save it as htaccess.txt

Then upload it to your web server and rename it to .htaccess

At this point it will turn into a hidden file and you will probably not be able to see it using your ftp client

Hope this helps,

Rob

Cheers Rob,

I did do that originally but did not know that I had to rename it to .htaccess