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 have a problem with content deployment that I need to fix using a script to replace content throughout the site. SharePoint handles relative urls already but editors have to use an internal url which then needs to be replaced with an external url when deployed.

Does anyone have/know of a script that will fix the content without messing up the publishing states?

I'm starting my own script to do this but if theres already one out there I'd rather not reinvent the wheel.

share|improve this question
Are the internal and external URLs different? Do they have the same path? Or, is it just their domains that are different. – mcnarya Sep 6 '11 at 21:50
its just the domains that need to be replaced for associated sites... I've written a script to do it and need to add it to this as an answer. – Mauro Sep 7 '11 at 8:23

Your Answer


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

Browse other questions tagged or ask your own question.