Restricting Directory access

  • Thread starter Thread starter mustang
  • Start date Start date
M

mustang

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,
 
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
 
Upvote 0
Matrixx said:
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
 
Upvote 0

Latest Articles