It's free to register, to post a question or to start / join a discussion
Oops ... a link is broken
Likes # 0
Posted March 26, 2013 at 8:59PM
My club's web site www.lmas.org.uk has a problem which I can't figure out:
It has several pages of photos. The other day I added six new photos to the Slope Soaring picture gallery, but five of them won't return properly to the picture selection page after viewing. The photos are displayed as thumbnails on slopePICS.htm, and clicking on each thumbnail takes you to a new page containing the full-size photo. Each of these pages is a clone of all the others, with appropriate references and titles inserted according to which photo they're for; slopea3.htm and slopea4.htm are examples, relating to the third and fourth photo in the top row of thumbnails.
My problem is that whereas slopea3 returns correctly to slopePICS.htm when either the photo itself, or "Back" button are clicked, slopea4 reports a broken link. slopea1 and slopea2 work correctly too, but slope_b1 to _b4 don't.
Needless to say the site works fine on my PC, but fails when viewed from the internet. I've reviewed the code and cannot see where slopea3.htm and slopea4.htm differ -- both of their "Back" buttons have identical code as far as I can see.
So, why should it be reporting a broken link? Any ideas please?
Likes # 0
Posted March 27, 2013 at 8:45AM
It's to do with the case of the letters in the link. The return page is "SlopePICS.HTM". The links which don't work are pointing at "slopePICS.HTM", with a lower case s. It works on your computer because Windows is not case-sensitive for links. Your website is hosted on a server which uses Linux, which is case-sensitive. It is best to use all lower case characters on pages, folders and extensions within your website (eg "slopepics.htm"). This would prevent this problem.
Likes # 0
Posted March 27, 2013 at 11:48AM
Well spotted beynac, and thankyou. Even after you've pointed it out, it's still not obvious that it's different case "S" on my hard copy printout that I've been staring at for hours. Anyway, I'm going to the source code to change it, and will upload the corrected version shortly.
I don't deliberately use a mixture of upper and lower case -- sometimes it seems that my software decides which it wants to use, especially when it comes to file extensions.
Reply to this topic
This thread has been locked.