Click to See Complete Forum and Search --> : Specific coding of a .htaccess file


devel95
01-09-2009, 08:07 AM
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.

Fang
01-09-2009, 11:38 AM
http://www.javascriptkit.com/howto/htaccess10.shtml