Forum Moderators: phranque

Message Too Old, No Replies

Google showing my 'Index of' .

Do I have to close something? How can I prevent this from happening?

         

Rosko

8:30 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Hi,

I'm using a shared hosting running an Apache/1.3.36. I have several addon domains on it. When I do a site: command on one of the domains I see that google has indexed some pages that shows the "Index of/" "parent directory" ..

Do I have something open that I should close? I don't want google to show that? How can I prevent that?

thanx

LunaC

12:50 pm on Jul 16, 2006 (gmt 0)

10+ Year Member



You mean they are showing the list of contents in a folder? If that's what you mean, adding this to your .htaccess will serve a 403 forbidden if anyone tries to access any folder without an index page:

Options All -Indexes

Another thing you can do is place an index.html inside the folder with the noindex, nofollow meta tag in the head.

edit: If you do this, be sure to test it with a header checker.. I'm just taking this from my current htaccess file, I'm in no way an expert.. or for that matter even slightly literate in htaccess stuff. But it is working for my site's folders.

[edited by: LunaC at 12:53 pm (utc) on July 16, 2006]

Rosko

9:18 pm on Jul 16, 2006 (gmt 0)

10+ Year Member



Thanx LunaC. Yep, that was exactly what I meant, I'm gonna try them and see how they work.