PDA

View Full Version : index of dir/sal


muschino
06-29-2006, 05:06 PM
I wasnt sure about where exactly to post this, so i have shuved it in here.

Basicaly my problem is that i dont have an index file in the folder structure of www.hairandbeautypages.com/dir/sal, but i have others.

When i index my site with my indexing script, for some reason it indexes a file called Index of dir/sal.

If i place an empty file called index in the folder, it dosent index the other pages.

What do i have to do so that it dosent index the dir/sal directory structure, but the files inside it only:confused:

Thanks for all help in advanced!

Kravvitz
06-29-2006, 06:52 PM
Sounds like you need to modify the script or program that is indexing the files.

muschino
06-30-2006, 04:30 AM
Is there any file that i can put in the directory that would stop it being indexed as Index of dir/sal?

Kravvitz
06-30-2006, 05:19 AM
No. The behavior you describe means the only way to fix it would be to change the script/program.

RysChwith
06-30-2006, 01:11 PM
If you have access to configure the server, you might be able to convince it to stop serving directory index pages, and that might also solve the problem.

Some servers are set so that if you type in the name of a directory without a file, and there isn't a defined index page in that directory, it'll generate a page that serves as a list of files in the directory. That may be what it's indexing.

Rys

Kravvitz
06-30-2006, 06:09 PM
If you have access to configure the server, you might be able to convince it to stop serving directory index pages, and that might also solve the problem.
Sounds to me like the indexing script wouldn't be able to index the other files again.

Some servers are set so that if you type in the name of a directory without a file, and there isn't a defined index page in that directory, it'll generate a page that serves as a list of files in the directory. That may be what it's indexing.
Most web servers do that, unless it's disabled for security reasons. I'm fairly certain that's what it's indexing and using to find the other files in that directory.

RysChwith
07-03-2006, 08:33 AM
Just the auto-generated ones. The server would still serve up index.html pages. Admittedly, I don't really know the specifics of it, as I'm not a server guy, but I know it can be done (because they've done it here at work).

Rys

Kravvitz
07-03-2006, 03:49 PM
Just the auto-generated ones. The server would still serve up index.html pages.
I'm not sure what you're saying.

RysChwith
07-04-2006, 11:16 AM
Understandable, since I'm not explaining it well.

If you try to access a folder without giving a specific file name, the server will generally look for a file called index.html (or some variant thereof), and will show that if it exists. If that file doesn't exist, the server will generate a page that shows all the files in the directory, and send that to the client.

It's possible to configure a server to look for and send the index.html page, but not send the generated page if the index.html page doesn't exist. You just get an error message instead.

Reading back through the thread, though, I see a point I had missed previously, which is that the script actually needs those generated pages to find the files in the directory. So you were right all along: the script needs to be rewritten to either explicitly exclude the generated pages from the final result, or to use some other method to locate the pages in the directories.

Rys