Hello,
I have a website hosted on a shared server. In my root directory there are many directories which are related to my website. Let me explain it with an example. suppose I have a domain hosted somewhere named www.answers.com and there is contact page in the link www.answers.com/contact_us.htm . All the images related to contact_us.htm are stored on a directory named contact_us. now when I browse www.answers.com/contact_us it shows a directory listing. Now I want to set a custom forbidden page that when such requests are populated it will shows forbidden masseges.
These are the codes in .htaccess--
-FrontPage-
IndexIgnore .htaccess /.?? ~ # /HEADER /README /_vti
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
I remove allow from all from the above code which implied that all the website forbidden set. what codes should I use so that directory listing prohibited only not the whole web.
Thanks
shafirul