Solved

Indexing in html

Posted on 2004-04-12
5
166 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
[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
  • 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …

739 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