Closed (fixed)
Project:
Link checker
Version:
6.x-2.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2009 at 02:36 UTC
Updated:
17 Mar 2011 at 12:00 UTC
I'm new to Drupal link checker and confused because it's reporting as '301' and '302' links that seem to be perfectly fine when I check them.
It also shows 403 and 4o04 errors which are something I can see are broken so I can fix those. But I don't know what to do when it reports 301 and 302 'broken' links that seem ok.
Any info welcome!
Comments
Comment #1
hass commented301: Means the links is permanently moved. You need to update this link. It works today, but you are redirected to a new URL. This may change as the URL may only provide this permanent update only for 6 months, but no longer. After the server owner removed the update rule your link may becomes a 404.
302: Means a temp change. You need to check out what's wrong/changed, but it doesn't mean for sure an upcoming defect. It could also be a session URL redirection. Then you can ignore it - otherwise often servers send 302 where they need to send a 301...
Hope this helps. Otherwise search the net... this is very technical stuff that may need verifying eyes... :-) aside 403 is permission denied.
Without the links I cannot verify.
Comment #2
Jeanine commentedThank you, Haas.
Btw, I usually do check online first before asking, and I did this time too but was puzzled when the links seemed to work each time I tested them.
I didn't see any 'redirect' screens on the 301 (or 302) pages, so guess I'll have to contact the websites involved and ask what's up.
At least now I know that links checker must be working normally, so thanks again :)
Comment #3
hass commentedIf you click on a link named http://example.com/foo, but a second later you are on http://example.com/bar your browser should have got a 301 or 302... There is no redirect page shown to you, but the URL in your browser changes very quickly... so - yes the users lands on the correct page, but you as site owner of your site linking to an external site may end up with broken links in future and should better update the links asap.
Comment #5
rv0 commentedIt really shouldn't report it like a broken link then. Would it be possible to provide a warning like: "This link will change in the future?"
Just spent a few hours and mails back and forth with the host trying to find out why I was getting a broken link report. Only to realize it's a false positive.
This is the message I get:
This is what the host sent me:
I see on the project page "Updates permanently moved (301) links after specified link check fail count"
Where can I find more info on this? I dont really understand.
Comment #6
hass commentedUh my goodness... this is a nobrainer. http://www.fanc.fgov.be/ should only send you a 302. An 301 is a permanent change. In this special front page situation a 301 is always wrong. This is a bug in their site's redirection rules...
If they permanently move a URL content from
http://www.fanc.fgov.be/page/this-is-my-old-link.aspxtohttp://www.fanc.fgov.be/page/homepage-federaal-agentschap-voor-nucleaire-controle-fanc/1.aspx- than and ONLY than a 301 is correct.An 301 need to be reported as a fail in linkchecker - as it must tell You - you need to update your outdated
http://www.fanc.fgov.be/page/this-is-my-old-link.aspxlink tohttp://www.fanc.fgov.be/page/homepage-federaal-agentschap-voor-nucleaire-controle-fanc/1.aspxASAP or it may break. If you have not configured the auto-update feature in linkchecker settings than you must do the link update manually. To be saver - the auto-update logic does the update only after a number of fails for not breaking links in single fail situations that could really happen because of server down and other technical issues on remote hosts.Sounds like the developers of this site need consulting - what HTTP status codes are for and how they work - I'm open minded to offer a beginners session to them if for interest.
Comment #7
rv0 commented@hass
thanks for your time and the explanation