Forum Moderators: phranque

Message Too Old, No Replies

Question regarding to redirection? Help.

.htaccess Redirection

         

reach2raj

12:06 am on Jan 13, 2007 (gmt 0)

10+ Year Member



Suppose i have a url like as http://www.example.com, in root there is one folder aaa & in that folder 2 files bbb & ccc.

Now somebody insert following url in addressbar like as:
http://www.example.com/aaa

this page shows up result like as below:
Index /
bbb
ccc

What should i do if anybody open http://www.example.com/aaa url, that doesn't open the list of files of folder. Shoul it possible?

[edited by: encyclo at 1:41 am (utc) on Jan. 13, 2007]
[edit reason] switched to example.com [/edit]

jdMorgan

2:51 am on Jan 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either add the directive:

Options -Indexes

in /aaa/.htaccess,

or put a file named "index.html" in /aaa/index.html.

Jim