Solved

Indexing in html

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows 10 SmartScreen vs ClickOnce app 5 132
thread-safe code in c++ 2 71
copyEndy  challenge 15 55
Installed softare without GUID 6 54
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

707 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

20 Experts available now in Live!

Get 1:1 Help Now