Solved

Indexing in html

Posted on 2004-04-12
5
165 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …

830 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