Welcome to WebmasterWorld Guest from 54.147.10.12

Forum Moderators: mademetop

Message Too Old, No Replies

when is a link a broken link and when not?

     
3:02 pm on Sep 9, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2001
posts:1436
votes: 0


I have a few files, some of which refer to pdf files in links as

/directory/file.pdf

and other times as

directory/file.pdf


There is only www.domain.com/directory/file.whatever
All html pages are in the root.

However my link checkers go crazy about /directory/file.pdf saying that it is a broken link.

It could be a broken link, but MSIE8 can find the resources linked to that way, displaying images and honouring links to pdfs and the like.

So, is:

/directory/file.pdf broken and
directory/file.pdf correct

?
2:38 pm on Sept 10, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2001
posts:1436
votes: 0


Dissapointed no one had a crack at this.

I just changed all /directory/file.htm links to directory/file.htm and my link checker likes them a lot more.
3:42 am on Sept 11, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10544
votes: 8


directory/file.pdf is relative and /directory/file.pdf is root relative.

it's likely your link checker is handling root relative links incorrectly and not prepending the hostname and is handling the relative links as it should.
3:26 pm on Sept 14, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 15, 2001
posts:1436
votes: 0


Hi phranque, thanks for your response, yes I suppose that could well be the case. Apparently our developer also has problems in that their link checking tool also falls foul of root relative links.

Anyhow sorted now, all are relative.

Thank you for your response.