help with FTP/HTML

jasonz

New Member
ok, im trying to use FTP(winSCP) to put some pages on the webspace that my university offers everyone. Im having some trouble when it comes to links and pics and stuff. The regular home page, which you have to upload as index.html shows up as far as text, but pictures dont show and links show up but do not link to anything. I tried changing the href="..." in the html code from what it was on the computer to what it was on the ftp thingy, but they still didnt show up.

here is the sight with text, no pic, and non working link.

If anyone could help me that would be awesome. Prob a little confusing, but here are some pics that might clarify what im trying to do.

code.jpg

ftp.jpg
 
Try using relative paths.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>jasons webpage</p>
<p><img src="1127FBC_horns_aggies01_bms.jpg" width="254" height="350" /></p>
<p><a href="page2.html">page2</a></p>
</body>
</html>
What your page is looking for now on the link is http://people.tamu.edu/r150/j/a/jasonz77975/public_html/page2.html instead of http://people.tamu.edu/~jasonz77975/page2.html which is why it isn't working. (it's the same problem with the image).
 
wow, thanks a crap load. That was fairly simple and makes the html a lot eaiser. It works just like i wanted it to. Amazing. Simply amazing.

-jason
 
Back
Top