Solved

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

Posted on 2011-02-22
6
478 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now