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 two SharePoint 2007 sites, a UAT/Development site (ip.ip.ip.ip) and a Production site ( Each site contains collections of lists pointing to applications our company uses.

The requirement (desire) is that the UAT SharePoint site links point to only the UAT deployments of the applications hosted at ( and that the Production SharePoint site links point to only the Production applications at ( That way, it would be such that the links to applications are dynamic between the UAT and Production Sites.

How can I create links that will reference the UAT Server applications when in the UAT SharePoint site, but reference the Production Server applications when on the Production SharePoint site?

share|improve this question
so, what's the question? – Mike Aug 10 '12 at 14:57

Use relative URL's in the list. (i.e. use /Page.html instead of

share|improve this answer
I thought of using relative URLs, but the UAT Applications and SharePoint are both on different hosts and different sites: i.e., and, and and I want all links to point to, and all links to point to Is there a way to accomplish this with relative urls? – holmat Aug 10 '12 at 16:51

One option is a URL Rewrite utility like the free one from Microsoft to create a map of URLs per server and then use an Outbound Rule to rewrite any links it finds in the html before it is sent to the browser. This would work but is a fair amount of manual work to keep the list up to date.

There is also a tool from Helicon that supposedly can do this as well but I have only used the Helicon tool for managing incoming links

share|improve this answer
Thank you for the links, I will give this a try. I don't have as much control over the environment beyond the SharePoint server and I cannot trust the users to keep yet another tool up to date after I leave. – holmat Aug 10 '12 at 16:54

You can write a kind of utility to go through all pages on production , and edit the web part content vias web part manager on the page.

For list content you can write your code using html agility Pack (

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.