dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Specific coding of a .htaccess file

  1. #1
    Join Date
    Apr 2008
    Posts
    171

    Specific coding of a .htaccess file

    What might the .htaccess file look like in the /images/ directory, for example, on a Linux/Apache server to:
    (a) prevent visitors from seeing a directory list of the /images/ directory
    (b) when accessing the /images/ directory via 'http://example.com/images/', or 'http://example.com/images/index.*' or 'http://example.com/images/default.*' have the visitor be redirected to the site's Home Page
    (c) still enable any documents or images in the /images/ directory to be used by the site?
    Thanks.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles