Solved

Indexing in html

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

773 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