Creating a web page from a Word Document

To create a web page from a Office 07 Word document, use the Save As option and set the format to a Web page". This is a choice from the File menu. The file will get an extension of .htm, and will be saved as an HTML file. Be careful - Office 07 sometimes puts an "mht" file type on a page file. Make sure it says ".htm". Usually Word will also create a folder with the same name as your document, with "_files" on the end of the name. This should all be transferred to a location where a web server can find it. This location depends on where you have an account. Here is how to do it for a UK account.

Specific directions for setting up a web page on your University AD account

If you are logged into your University AD account, on your home directory (Lockerspace) (L:) there should be a directory called www. If you've erased it, you can create it again just like any other folder. To create a web page on your lockerspace, in this directory, create a file called index.htm, index.html, home.html, home.htm, welcome.html or welcome.htm. This page will be your home page. Please remember that ANY file in this directory can be viewed by anyone with access to a web browser.

If you are on a machine in a lab on campus, you should be able to access your lockerspace through the "My Computer" icon on the Desktop. It is the L: drive. You can drag and drop files to that drive and create folders like any other. Putting something in the www folder will make it viewable by a browser.

If you are on a machine somewhere else (not on campus) (remote), use ftp and give it the URL http://sweb.uky.edu and use your userid to log in. Then you can transfer files in both directions. If you don't have an ftp application on your machine, look for WSFtp or Cute FTP or other shareware applications.

Another way to handle remote access is to use a web browser from anywhere and log into http://sweb.uky.edu with your AD (University) account. Then click on the "Web File Manager" link. This is a web-based interface where you will see a listing of all files and folders you have in your Lockerspace. Look for a folder called www. This is where you put files to be seen by the web server. There is a Browse button so you can find a file on your machine that you want to send, and an "Upload" button to send it to the www folder. Make sure you have selected the www folder before you upload, so you are uploading INTO the www folder.

Note: if your page has images, objects, etc. attached to it, then they were put in the name_files folder mentioned in the first paragraph. In order for those to be displayed with your web page, you need to transfer (upload) those too, and they need to be in a correctly named folder. That is, if your main file is called "mypage.htm", created by Word, you will also have a folder called "mypage_files" which contains the extra items. You will need to transfer the file "mypage.htm" to the www folder, AND create a directory in the www folder called "mypage_files" and then upload each of the files in that folder to the folder in www.

Before you can use www, you must make sure the permissions of the folder are correct. This is true even if you already had a web page created last semester. This is a change that was done over Christmas break. You can try this script. It will tell you if the permissions need to be changed, and it has a link to "fix it". This should work. This fix only has to be done once. If this script does not work, the permissions can be set "by hand". In the "Web File Manager" described above, from your directory, where you can see the folder www, click on the "Permissions" column - it will say something like "rwx------". When the window opens up you want to leave the three boxes under "User Permissions" as they are (checked) and check the third box under "Group Permissions" and the third box under "Others Permissions". Click "Set Permissions". Now your permissions for www should look like "rwx--x--x". Your TA can help you with this process if you need them to.

How to View a Web Page - What's the URL?

Another change from last semester - "locker.uky.edu" is going away, the preferred URL is "sweb.uky.edu". Right now both will work, but locker eventually will not work.

To see a web page you have created using a browser, tell the browser the URL http://sweb.uky.edu/~userid. This will display your index or home or welcome page if there is one. If you want to go directly to one of the other files you have in the www directory, use http://sweb.uky.edu/~userid/nameoffile.htm. NOTE: for the lab test you are REQUIRED to know how to use this URL, i.e., sweb.uky.edu/~userid/file, NOT the long one that you get by clicking on links through the web-based interface described above. That one looks like: "https://sweb.uky.edu/oliver/index.php?sessionID=008dce136d2495a4172a020bec5e2324&act=getfile&pwd=%2Fwww&mimetype=text%2Fhtml&file=page.htm" If you are local, i.e., on campus, you can also access your pages by using a browser and the File / Open File menu. This will not be allowed on the lab test. You need to know how to access your pages remotely for the lab test.

NOTE that you do NOT have to (nor do you WANT to) include the "www" part of the path of the filename in the URL. This part ("www") is automatically inserted by the web server. That is, if you put the url in the browser as http://sweb.uky.edu/~userid/www/nameoffile.htm, the file will not be found because its path is NOT ~userid/www/www/nameoffile.htm.

A good reference FAQ for using Lockerspace