Your best friend for file transfer.Fetch
HTML links get prefix added when (2 posts)
- Started 6 years ago by pestafford
- Latest reply 6 years ago from Scott McGuire
I'm using Fetch 5.3
I have a file (A) that has about 30 different links to other HTML files on my site. When I PUT this file (A) into a folder (folderB) on my site the file ends up with a prefix of /folderB/ added to each of the HTML links in file(A). Since none of the HTML links are in folderB they do not show up on the page when viewed.
Is there a method that will allow me to PUT file (A) in folder (folderB) and still have all the HTML links in file(A) be displayed?
Scott McGuire Administrator
After you create the links in your pages, you must keep the pages in the same relative locations to each other, or your links will stop working, as you have discovered.
That is, if file(A) and the other HTML files were all in the same folder to begin with, you should put them all in the same folder when you upload them. If file(A) was not in a folder, and all the other HTML files were in subfolders, you must upload file(A) not in a folder.
If you want to put file(A) in folderB, you must create a folderB on your Mac and redo all your links, so that they can properly reference the other HTML files in the other locations. The program you are using to create your webpages should be able to help you redo the links.
The other option is to leave your files organized as they were when you created them.
(Note that this is really an issue of how HTML and webservers work, and has nothing to do with Fetch - Fetch is not adding /folderB/ to your links when you upload the file. The webserver is doing that. Fetch is uploading the file exactly as you created it; it's just when you put it inside a folder, the links don't work as you expect.)
- Page 1