Current time: 05-16-2012, 01:02 PM Hello There, Guest! (LoginRegister)

Post Reply 
How can I prohibit the directory listing?
12-23-2006, 08:40 AM
Post: #1
How can I prohibit the directory listing?
Hello,

All the directories i create in DH hosting, those directories listing is by default enabled, how to disable it? Is there any option so that all new directories I create, for them, listing is disabled?

Jigar Mehta
India
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 08:45 AM
Post: #2
How can I prohibit the directory listing?
Quote:those directories listing is by default enabled, how to disable it?
Add the line below to your .htaccess file. If you do not already have one, create a file called .htaccess and place it in your domains root directory, which by default is named the same as your domain.

Options -indexes

Note: This will affect the directory you place the file in and all lower directories.

Mark

--
Save $50 on DreamHost hosting using promo code PRICESLASH ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 08:54 AM
Post: #3
How can I prohibit the directory listing?
Oops!!

There comes another question. Say, if I want to override this default behavior of not listing directories for a particular sub directory, I mean for that particular sub-directory, I want to show the directory listing, what should I do?

Putting empty .htaccess file (without Options -indexes) would work?

Jigar Mehta
India
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 08:57 AM
Post: #4
How can I prohibit the directory listing?
Got it!!

I cerated .htaccess inside that folder and had following content,
Options +indexes

It allows me to show directory listing for that specific directory. Thanks mark, for giving prompt reply.

Jigar Mehta
India
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 09:01 AM
Post: #5
How can I prohibit the directory listing?
Quote:Putting empty .htaccess file (without Options -indexes) would work?
Almost Smile

You just need to place another .htaccess file in the subdirectory with the following line;

Options indexes

By the way, this forum section ('Curious About DreamHost') is probably not the best place to ask general questions as it's primary purpose is to provide information for potential customers. Perhaps the 'General Troubleshooting' section would be more suited.

Mark

--
Save $50 on DreamHost hosting using promo code PRICESLASH ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 09:12 AM
Post: #6
How can I prohibit the directory listing?
Quote:Got it!!
Excellent.

Our posts seemed to have crossed and you solved it before I had a chance to click the post button. Smile

Hmmm... There is supposed to be a '+' before the 'indexes' in my post above, but the forum software insists on eating it, regardless of how many times I try to edit the post. :O

Mark

--
Save $50 on DreamHost hosting using promo code PRICESLASH ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 12:39 PM
Post: #7
How can I prohibit the directory listing?
I've seen many questions here that were more targetted for other parts of the forum, but maybe people think that the answers here are quicker Tongue ?

Dreamhost $97 promo code

97promo will give you $97 off
90promo will give $7 to Unicef
Visit this user's website Find all posts by this user
Quote this message in a reply
12-23-2006, 01:10 PM
Post: #8
How can I prohibit the directory listing?
I've noticed that too! I wonder if that is because some are especially quick to reply to posts in *this* forum category in order to get their promo codes in front of potential new customers? Wink It's all good!

--rlparker
Find all posts by this user
Quote this message in a reply
12-23-2006, 01:22 PM
Post: #9
How can I prohibit the directory listing?
Not likely the cause of OPs, but possibly the cause of so many answers. ;-)

--
They need more support help.
Pay me (and DreamHost gets 5%+$0.30) Cut the code: 9999=$99.99 Off
Find all posts by this user
Quote this message in a reply
12-23-2006, 06:21 PM
Post: #10
How can I prohibit the directory listing?
Quote:I wonder if that is because some are especially quick to reply to posts in *this* forum category in order to get their promo codes in front of potential new customers? [/wink]
I tend to leave my browser on the 'Past 24 hours' page, that way I can see new posts in all forum areas.

On the subject of promo-codes; to be honest, I don't make many referrals from this forum, which is totally understandable given the larger promos on offer here. Most of my referrals originate from my various sites, in fact I would guess that I would lose some referrals as they make their way to the forum and find a bigger discount, but such is life, I don't lose any sleep over it.

One recent trend that I find interesting is the number of posters that *only* seem to be able to post in the 'Curious About DreamHost' forum. I am not sure why this is, but perhaps they are using the DreamHost frontpage to check for new posts and never see posts in the other forum sections.

Come on guys, there are 10 other forum sections with people desperately needing your expertise. Smile

Mark

--
Save $50 on DreamHost hosting using promo code PRICESLASH ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: