SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've taken over a massive MOSS 2007 project, nearly 2000 pages deep. During initial development, the previous developers used a testing URL to test particular sections of their web parts:

This went live with the application and is now causing issues with some of the links as the DNS entry was removed from the client's front-end, so I need to rename all of these to the actual link of the web site.

I've read up on how to do this effectively, through SP Designer but this did not work for me. I've found several tools ($ of course) but sure there must be a way through a C# command-let or something. I haven't found any code online that points me in the right direction.

Any ideas?

share|improve this question
up vote 1 down vote accepted

I have used PowerShell in the past to iterate through the object model and seek out links with a particular prefix (ie: http://oldurl) and either remove the link or update if necessary. That stuff is a bit harder in 2007 (PowerShell is a little more limited, though it still should be possible).

share|improve this answer
I've been too lazy to actually write a command-let to itterate my site structure. As this is a pretty deep site, and we're still finding issue, might as well just do it. Thanks webdes03 – JadedEric Nov 18 '11 at 12:22

there is also one by for sp2010 to report on broken links, its free

share|improve this answer

I'm using Xenu for broken links for many years and it is free. Just click here for more information at this link You can create xml reports, excel or text reports, sitemaps, missing alt tags reports and so on. The only disadvantage is fact, that you can't replace listed links...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.