post Category: Information Technology, Urdu Poetry post postFebruary 28, 2008
(1 votes, average: 5 out of 5)
Loading ... Loading ...

A .htaccess file may be employed to prevent the listing of the contents of directories without index documents -

  Options -Indexes

To selectively block the listing of any README file and all .gif images, use the IndexIgnore directive -

  IndexIgnore README *.gif

With this an “Access Denied” message will be shown to the visitors. To Show your visitor a custome error page you can use following lines in .htaccess

ErrorDocument 404 errors/notfound.html ErrorDocument 403 errors/forbidden.html

ErrorDocument 500 errors/servererror.html

It is crucial to understand that the directives inside an .htaccess file apply not only to the directory in which the .htaccess file is placed, but also to its subdirectories.

Related Articles


Tags: , , , , ,



 

Sorry, no comments yet.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Sum of three plus nine ?
Remember my information for the next time I visit.
 
Directory of Web Development Blogs