Forum Moderators: open

Message Too Old, No Replies

Question Regarding Hyperlinks using Frontpage

         

chopin2256

7:49 am on Jun 8, 2005 (gmt 0)

10+ Year Member



I am using this piece of code on my webpages in order to help me with absolute links:

<base href="http://www.example.com/" >

However, I now have a problem when I do this. Everytime I go to add a new hyperlink, Frontpage puts in this address as the link:

file:///D:/Example%20Website/folder1/folder2/file.html

Then when I upload it to the server, it brings this link instead of www.example.com/folder1/folder2/file.html. I thought uploading to the server from frontpage would have replaced the "file:///D:/Example%20Website" with my domain, but it didn't. Then when I manually replaced the "file:///D:/Example%20Website" with my domain name, it gave me something like this:

www.example.com/www.example.com/folder1.........

It duplicated the domain. Not sure what to do here.

If <base href="http://www.example.com/" > is not in the code, it would give me a relative link.

I assuming working directly on the server can prevent this problem. However I usually like to work on a local computer before I update my site. All the hyperlinks I add locally have the base "D:\" the root of my harddrive. These hyperlinks do not convert to my website domain. Does anyone know what I can do?

dreamcatcher

12:40 pm on Jun 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does anyone know what I can do?

Stop using Frontpage. ;)

Try opening your file in a text editor and correcting the info manually.

Dogza

8:04 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



This usually happens if you 'preview' the page before saving it. Set up your links, then save and close the page without previewing it. You can then re-open the page and it will save the links correctly from that point on.