Uploading Pages to the Lehigh Web


Once you have created web pages, using whatever editing tools you choose, you must 'upload' your pages to your web space for them to appear on the Web.

What you will need:

Once you have converted your files to HTML format (with the correct .htm or .html file extension), you will want to upload the files to your webspace.

If you are using SSH Secure File Transfer Client or a similar program:

  1. Open a connection to: ns.cc.lehigh.edu
  2. Login using the userid and password of the account you want to upload the document/page files to.
  3. If necessary, change the local directory to the one in with the document/page files in it.
  4. Change directories to webspace

    OR
    If you don't have a webspace directory on NS, change directories to /ahome/userid/public/www-data
    where userid is the userid of the account. *
  5. Select ASCII mode for the transfer if your files are in HTML.
    If your files are not HTML, be sure to select BINARY mode for the transfer.
  6. Transfer your files up to the webspace directory.
  7. Close the connection.

If you are using Netscape Composer (note: this will only work with HTML documents!) you will:

  1. Open the page or document in Composer.
  2. Select Publish.
  3. In the Upload files to this location: box, type
    https://www.lehigh.edu/~userid/
    where userid is the userid of the account, and directory is the name of any subdirectory you want the file to be in.*
  4. Also fill in the userid and password in the Username and Password boxes.
  5. Click on OK to upload the file.

* If you want to upload your images to a subdirectory of your web space, put the subdirectory name at the end of the address.

Once you have your page/document files up on the Web, you can access them with the URL:
http://www.lehigh.edu/~userid/filename
where userid is the userid of the account you put it in, and filename is the filename and extension.

To have the file linked from another page, use this HTML tag for the link:

<A HREF="/~userid/filename">[Descriptive Text]</A>

So, the HTML for a menu of documents would look like this:

<UL>
<LI><A HREF="/~xxxx/page1.html">Another page</A>
<LI><A HREF="/~xxxx/page1.html">Another page</A>
<LI><A HREF="/~xxxx/document1.wp7">Wordperfect document</A>
</UL>

MAINTAINER jahb@lehigh.edu

12/15/00