How to test multiple website links?
Basically I have an old site which has about 5000 external links across many pages. Now the new website will have the same links, I can use and link checker to make sure they are not going to any dead urls, but is there anyway I can make sure that the links on the old site are going to the same destination as links on the new site. Essentially its a comparison check.
Can anyone recommend any programs that can do this? Or any suggestions on how to test this?
Some link checkers can produce a report. (I use Xenu LinkSleuth)
Run the link checker against the old site, then run it against the new site - and compare the reports.
Originally Posted by Joe Strazzere
Yes thats the tool I was going to use to check the links. Compare the report manually? Its 5000 links. Do you know of any other way I can do it?
Couldn't you write a bit of code that parses both reports and outputs the differences? I.e., read errors from both reports into two collections and find the ones that are in the union of those sets but not in the junction? If the reports are plain HTML (which is what they look like) this shouldn't be too hard for someone with a bit of programming experience.
Where are the external links coming from?
I'm sure there are much smarter solutions once you identify how these links are being sourced. I doubt all those links are hard coded into pages/templates.
I'm sure there is a much better way to tackling the risk. Such processing the source data, etc...
Save the reports as text files.
Originally Posted by JKD11271940
Use your favorite file-comparison tool.
This was a good suggestion that you all put up here. Thanks