Solved

Indexing in html

Posted on 2004-04-12
5
160 Views
Last Modified: 2010-04-17
How can i go to my website and index a page like this
http://magaxp1.msfc.nasa.gov/solardata/
0
Comment
Question by:neorion
  • 2
5 Comments
 
LVL 14

Expert Comment

by:JohnK813
ID: 10807801
Are you running your website off your own web server?

If so, in the directory where you place all your html files (or in a new subdirectory), don't include a file named index.html.  http://magaxp1.msfc.nasa.gov/solardata/ is a directory on a NASA computer - something like c:\webstuff\solardata.  When a web browser requests a directory like http://magaxp1.msfc.nasa.gov/solardata/, the web server first checks for a file named index.html in that directory.  If index.html exists, the server returns that to the browser.  Otherwise, the server returns the listing of the contents of that directory.
0
 

Author Comment

by:neorion
ID: 10808672
i go to my website hosting www.caffiene-junkie.org/images which i would like to index and it says page not found i try for www.caffiene-junkie.org/images and it says page not found. Hmmm
0
 
LVL 14

Accepted Solution

by:
JohnK813 earned 50 total points
ID: 10809184
Do you have your website hosted for you, then?  The company that hosts your site probably doesn't have things set up to do directory listings like I described.  You probably have 2 options:

1. Talk to the company that hosts your site about directory listings.
2. Write a quick CGI/Perl script (assuming your host allows those) that does this

(THIS IS PSUEDOCODE!)
for each [file] in [this directory] {
  print <a href="[file]">[file]</a>
}

That is psuedocode, so it won't work like that.  I haven't used Perl in a while, so I'd have to check up on my syntax.  But hopefully you get the idea.  If not, don't be afraid to ask.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
countAbc challenge 9 58
firstswap challenge 20 65
Non-recursive backtracking, using a stack 1 94
"Black Box" Testing of Control System Software 2 17
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

943 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

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now