HTACCESS- Prevent access to directory by displaying custom page

Discussion in 'HTML & Website Design' started by sitefever, Jan 31, 2008.

  1. #1
    I saw how to do this somewhere not too long ago, but now I can't find it anywhere:

    I'm looking to display a custom page, for example, mysite.com/sorry.html, whenever someone attempts to browse a directory such as /images.

    What do I put in the .htaccess file to do this? Thanks a ton.
     
    sitefever, Jan 31, 2008 IP