ChickenMan Posted November 29, 2017 Report Share Posted November 29, 2017 I"ve created the Moving.html webpage but when I click this link from the hompage the link just leads to a page that says: "Your file was not found". <nav> <ul> <li><a href=“./GoodWork.html”>Home</a></li> <li><a href=“./Moving.html”>Moving Service</a></li> <li><a href=“Snowleaf.htm”>Snow/Leaf Removal Service</a><li> <li><a href=“Lawncare.htm”>Lawncare Service</a></li> <li><a href=“Cleaning.htm”>Cleaning Service</a></li> <li><a href=“ContactGW.htm”>Contact Us</a></li> <li><a href=“WebstoreGW.htm”>Webstore</a></li> <li><a href=“DonateGW.htm”>Donate!</a></li> </ul> </nav> Quote Link to comment Share on other sites More sharing options...
LSW Posted November 29, 2017 Report Share Posted November 29, 2017 Your ./ should be ../ if you are leaving the folder to that page. You should always use the full URL on every link. it is safer that way. <li><a href=“http://www.whatever.com/folder/GoodWork.html”>Home</a></li> Quote Link to comment Share on other sites More sharing options...
ChickenMan Posted November 29, 2017 Author Report Share Posted November 29, 2017 I have not uploaded the page to the internet yet so I don't have the full URL yet I only have the local file on my desktop. Quote Link to comment Share on other sites More sharing options...
LSW Posted November 29, 2017 Report Share Posted November 29, 2017 OK, then just try the ../, that takes you out of the folder you are in and the page should be in the next folder up. So lets say folder 1 has GoodWork.html and inside folder 1 is folder 2 with page 2 folder 1/GoodWork.html folder 1/ folder 2/page2.html <li><a href=“../GoodWork.html”>Home</a></li> The ../ Takes me away from page 2 out of folder 2 into folder 1 to enter GoodWork.html. Does that make any sense to you? Quote Link to comment Share on other sites More sharing options...
ChickenMan Posted November 29, 2017 Author Report Share Posted November 29, 2017 (edited) Yes that makes sense. I've placed the saved GoodWork.html file to my desktop and I've tried "../GoodWork.html", but i'm still getting the same response. I've also tried to direct the link through the relative path of: "Desktop/GoodWork.html" and tried placing the file in a folder called HTML and tried to direct the link as such : "HTML/GoodWork.html". All of these attempts left me with the same response Edited November 29, 2017 by ChickenMan Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 30, 2017 Report Share Posted November 30, 2017 Are all your files in the same folder? I mean are they all directly on your desktop or are some in subfolders? Can you show us the structure of the files? Also, do none of your links work or only certain ones (which)? Quote Link to comment Share on other sites More sharing options...
devilslayer Posted December 1, 2017 Report Share Posted December 1, 2017 On 29/11/2017 at 9:58 PM, ChickenMan said: I"ve created the Moving.html webpage but when I click this link from the hompage the link just leads to a page that says: "Your file was not found". <nav> <ul> <li><a href=“./GoodWork.html”>Home</a></li> <li><a href=“./Moving.html”>Moving Service</a></li> <li><a href=“Snowleaf.htm”>Snow/Leaf Removal Service</a><li> <li><a href=“Lawncare.htm”>Lawncare Service</a></li> <li><a href=“Cleaning.htm”>Cleaning Service</a></li> <li><a href=“ContactGW.htm”>Contact Us</a></li> <li><a href=“WebstoreGW.htm”>Webstore</a></li> <li><a href=“DonateGW.htm”>Donate!</a></li> </ul> </nav> Do your pages share the exact same capitalisation of letters in the filenames? Example is the first page you are linking to actually GoodWork.html or is it good-work.html or goodwork.html Common practice is to separate words with dashes and use all lowercase in filenames. Quote Link to comment Share on other sites More sharing options...
Andrea Posted December 1, 2017 Report Share Posted December 1, 2017 I just noticed that goodwork and moving are .htmL, the other files are just htm (no L). Is this maybe the issue? Check the actual filenames. Edit: htm and html are both correct, but your life will be much easier if you pick one version and stick with it ALWAYS!!! Quote Link to comment Share on other sites More sharing options...
devilslayer Posted December 1, 2017 Report Share Posted December 1, 2017 (edited) 3 hours ago, Andrea said: I just noticed that goodwork and moving are .htmL, the other files are just htm (no L). Is this maybe the issue? Check the actual filenames. Edit: htm and html are both correct, but your life will be much easier if you pick one version and stick with it ALWAYS!!! Well spotted! Andrea with the eagle eyes. :-) Edited December 1, 2017 by devilslayer Quote Link to comment Share on other sites More sharing options...
webmanz Posted December 5, 2017 Report Share Posted December 5, 2017 On 12/2/2017 at 3:26 AM, devilslayer said: Well spotted! Andrea with the eagle eyes. :-) So that solved the problem? Quote Link to comment Share on other sites More sharing options...
devilslayer Posted December 10, 2017 Report Share Posted December 10, 2017 (edited) I would think it would work (Chickenman hasn't commented either way though!). If you are linking to a html page called LawnCare.html using a link LawnCare.htm it will not work as the file LawnCare.htm doesn't exist. Personally I would name all the pages lowercase and separate them with dashes, rather than mixing upper and lowercase. lawn-care.html Edited December 10, 2017 by devilslayer Quote Link to comment Share on other sites More sharing options...
ritchie88 Posted February 5, 2018 Report Share Posted February 5, 2018 Hey Guys, So glad I ran into this thread as I was having the same issue. So far I am up to ch.4 "hyperlinks" for the basic html and here is a sample if what I got: <p>check out the link to <a href="my_book_review.html"> my book review.</a></p> I am using sublime text 2, all of my work so far are saved into the same file and after I have saved my work and opened to view on my browser, I go to click on my hyperlink and a new page opens to say that it was not found. Suggestions? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Andrea Posted February 5, 2018 Report Share Posted February 5, 2018 Have you verified that there is no typo in the file name and that the review html is definitely saved to the same folder? Are you working online? If so, have you made sure tre review file has actually been uploaded? Quote Link to comment Share on other sites More sharing options...
ritchie88 Posted February 6, 2018 Report Share Posted February 6, 2018 (edited) Hi Andrea, Sorry could you explain the upload part? Thank you. Edited February 6, 2018 by ritchie88 Quote Link to comment Share on other sites More sharing options...
Andrea Posted February 6, 2018 Report Share Posted February 6, 2018 Are you viewing the pages you are working on on the www or just your computer? Quote Link to comment Share on other sites More sharing options...
ritchie88 Posted February 6, 2018 Report Share Posted February 6, 2018 I'm viewing them on the www. But when I go to click on the link, a new page opens up and says that the link cannot be found. Quote Link to comment Share on other sites More sharing options...
Andrea Posted February 6, 2018 Report Share Posted February 6, 2018 Are you really sure that you have uploaded the file you are linking to and it’s in the right folder? Can you post a screenshot of your online directory? Quote Link to comment Share on other sites More sharing options...
ritchie88 Posted February 6, 2018 Report Share Posted February 6, 2018 Let me try one more time from scratch incase I may have missed a spot and I will get back to you Monday next week. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.