Hi all:
I was wondering how can I change the site URL of a SharePoint site that has already been created?
I can't do this since URL is a read-only field:
web.Url = "something";
Thanks.
EDIT:
Some clarification on my cumbersome explanation...
The URL I referred to was a SharePoint web site that was created programmatically in C#. E.g.
spWeb.Webs.Add(siteRelativeUrl, operationName, operationDesc, ...);
Now... suppose the website's URL is
http://localhost:12345/MyTopLevelSite/MyWebSite
I have since created a new version of MyWebSite. However I want to keep using the url name of MyWebSite while still preserving the old version of MyWebsite. So I want to programmatically rename the original MyWebSite to, e.g., MyOldWebsite, and then link the MyWebSite name to the new version that I have created.
My question is: is it possible to achieve this programmtically? If so, how?
Thanks.