Click to See Complete Forum and Search --> : uploading home page web files to server


drtom
December 11th, 2001, 06:07 PM
I get an error msg when trying to upload my web page to my server: "Links invalid because they refer to files on your local hard disk." How do I strip out the local reference from these files before I upload them?

sofaraway
December 11th, 2001, 07:03 PM
change the code from, for example...<a href="...c///thelink">link</A> to <a href="http://www.whereyouwantthelinktogo"link</A> You can change the code in any html editor, or note pad, then upload.

rh71
December 12th, 2001, 12:19 AM
Alternatively, you can just make them relative links as opposed to absolute. By absolute, you're stating the complete location including the http:// part. By relative, just insert the .html file name for each link relative to the web root directory on the server.

So if you have index.html and have a link in that page going to test.html, refer to it as <A HREF="test.html">Test Page</A>.

If test.html were in a subdirectory of your web root, just type <A HREF="/subdirname/test.html">Test Page</A>.

Using relative links makes it easier if you ever decide to relocate your webpage since you're not stating any absolute location for these files... it's all just "relative" to the root already.

------------------
http://www.rh71.com (high bandwidth preferable)

[This message has been edited by rh71 (edited 12-12-2001).]