Solved

Change static URL's to relative URL's for SP 2007

Posted on 2011-02-22
6
480 Views
Last Modified: 2012-05-11
I restored a MOSS 2007 server to a Hyper V VM guest, changed server name and alternate mappings. Everything is up and running.
However, all navigation links on Quick launch and also on some webparts, still point to the old server. I looked into the "Navigation" at the top site and found that they are all hard coded with http://<oldservername>/
Is there a way to change all of them to using the new server name without having to modify the link manually?

Thanks

Bill
0
Comment
Question by:billnguyen
6 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 34955605
The easy fix is a DNS change on your network .

simply point both names to the same server.

but The real fix would be to manually modify the navigation as it was manually configured

By default the navigation is relative to the root of your site.


Best of luck.
0
 

Author Comment

by:billnguyen
ID: 34956517
Thank you your comment. However, this won't work since I'm keeping both servers.
Manually fixing the link is what I'm trying to avoid.

Bill
0
 
LVL 14

Accepted Solution

by:
KoenVosters earned 250 total points
ID: 34960445
You will have to modify it manually, but only once. Just remove the http://www.url.com stuff and keep everything after that. This way, if you ever decide to change it again there shouldn't be a problem.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 6

Expert Comment

by:sabby447
ID: 34975308
Unfortunately if they were manually added, they need to be manually removed :(

I would go with KoenVonsters suggestion to do it for good this time.

0
 

Author Comment

by:billnguyen
ID: 34975392
Actually, I even used sqlserver script to replace all URL's containing <old URL> with <new Url> and still cannot get it work correctly.
I'll wait for another 24 hours to see if there's any other possible solution then.

Thanks
Bill
0
 
LVL 6

Assisted Solution

by:sabby447
sabby447 earned 250 total points
ID: 34976203
SharePoint manages the relative url in the database and modifies it as per the need, That is how Alternate access mapping work .. I am not a developer however seen an article sharing some development code, Not sure if gives you solution or just learning, I only got learning :)

Link : http://www.devcow.com/blogs/jdattis/archive/2007/09/27/11463.aspx
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question