Solved

index.html

Posted on 1998-09-28
12
347 Views
Last Modified: 2010-04-09
How do I view a directory listing if I have an index.html file in that directory?  
www.mysite.com/home/dir1/index.html
How would I view the contents of dir1?
0
Comment
Question by:ueihp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 1

Expert Comment

by:dedsi
ID: 1838181
Hi ueihp,

if you are using Windows I would suggest you to download "Directory -2- HTML" from winfiles.com.

Goto http://www.winfiles.com/apps/98/webauth-index.html and look for that program (second from top).

This is a program that will automatically generate a .html file of the contents in a specific directory.

Hope this is what you were looking for.

/dedsi
0
 

Author Comment

by:ueihp
ID: 1838182
I am not running windows.  Is there a simpler way.  If the index.html file does not exist in that directory all I normally have to do is type the dir i.e.  www.mysite.com/home/dir1/
but since there is a index.html file in there it automaticallys points to that page instead of the directory listing.  
0
 
LVL 1

Expert Comment

by:dagon
ID: 1838183
tried ftp ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ueihp
ID: 1838184
I am not running windows.  Is there a simpler way.  If the index.html file does not exist in that directory all I normally have to do is type the dir i.e.  www.mysite.com/home/dir1/
but since there is a index.html file in there it automaticallys points to that page instead of the directory listing.  
0
 
LVL 1

Expert Comment

by:dagon
ID: 1838185
tried ftp ?
0
 

Author Comment

by:ueihp
ID: 1838186
ya it says user anonymous unknown
0
 
LVL 1

Expert Comment

by:dagon
ID: 1838187
if using a browser-

ftp://<loginname>:<password>@<site address>

or use an ftp client and set those
0
 
LVL 1

Expert Comment

by:dagon
ID: 1838188
if using a browser-

ftp://<loginname>:<password>@<site address>

or use an ftp client and set those
0
 

Author Comment

by:ueihp
ID: 1838189
Cool that works.  But I dont' think I will be able to use that either.  
Let me give some more info about what I am doing.  I have a program that lets users upload files to a dir.  after they upload the files I send them an email message to say "your file have been uploaded to <this directory>".  If they are using a "GUI" mail system they can just click on the link.  
now heres my problem if the user uploads a index.html file to that directory then thats the only file that can be view even if there are other files in the directory.
If I use the ftp thing then everyone will know my password and that wouldn't be good.  Is there a way I can just "disable" the automatic call of index.html?
0
 
LVL 1

Expert Comment

by:dagon
ID: 1838190
If your the server administer you should be able to.
0
 
LVL 2

Accepted Solution

by:
chrisbolt earned 0 total points
ID: 1838191
If the server is running Apache, create a file in that directory named .htaccess and insert the following text into it:

DirectoryIndex ________.____

Then the only way it will not show the directory listing is if someone uploads a file named ________.____

If you don't know which server software the server is running, just try putting that file in the directory and see if it works.
0
 

Author Comment

by:ueihp
ID: 1838192
It didn't work.  But I am just going to ask my system admin to fix this for me so I am closing this call.  Thanks everyone for your suggestions.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question