Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Using an INDEX file

You may want someone to be able to open the URL:

    http://web.mit.edu/username/www

and see the file:

    http://web.mit.edu/username/www/home.html

You can accomplish this through the use of what is known as an index
file. 

Basically, whenever a web browser is given a URL which points to
a directory, it searches for a file in that directory named index.html.
If it finds that file, it displays it; if it does not find that file, 
it will either list the contents of the directory or give an error
(depending on the browser).

So, to implement this behavior, you will need to create a file named
index.html in your www directory. Since you want this file to be identical
to your homepage (which is in the file named home.html), you need
to create a symbolic link from the index.html file to the home.html file.
You can do this by typing:
 
    cd ~/www
    ln -s home.html index.html

You can check to see that it was linked properly by typing:

    ls -l index.html

At the far right, you should see something like:

    index.html -> home.html


Last Updated: 8/1/96

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.