| Site
Management Computing Resources >> Tutorials >> Web Development >> Site Management |
| public_html
|
Directories and FilesOnce you’ve created all your Web pages, you are ready to transfer your files to the Web server. Each account on the Web server has a home directory (or folder). When you login, you will be in your home directory (please reference our tutorials on SSH or Fugu to learn how to transfer your files to the Web server; for information specific to using your iSchool account to post webpages, check out our tutorial on how to use your School of Information account). Within your UNIX account you should use (or create if there is no such folder) the following: Within your home directory, you need a sub-directory called public_html. It will contain your Web pages. If you login for the first time, you need to create this directory (please reference our tutorial on how to publish Web Pages). This should be the main folder intended for HTML files. This public_html folder should contain all of your HTML files. You will create those files either with an HTML editor (such as Dreamweaver or Mozilla Composer) or by writing the HTML code yourself. Figure 3 index.html You should transfer your homepage into the public_html directory and name the page as index.html. This will be your homepage and the URL will be: http://www.ischool.utexas.edu/~yourusername. images You need to have a sub-directory named images in your
public_html directory that contains all the images referenced in index.html
and other Web pages contained in public_html. You can put all of your
general graphics files, the buttons, logos, background images, photos,
etc. in the images folder. Linking to the images in these folders has
a different method. To link to a folder inside your main folder (or,
in other words, to link "forward"), your link must start with
the name of the folder and a slash. A link to an image in your images
folder, then, would look like this: images/picture.jpg (or images/picture.gif).
We’ll discuss how to link files in detail at the Linking
Files page. If you're building pages on your resume and the class projects, these should be kept in their appropriate sub-directories.
|
|