How to use the new "renamesite" operation to change the URL of a host-named site collection in Windows SharePoint Services 3.0

Article translations Article translations
Article ID: 939535 - View products that this article applies to.
Expand all | Collapse all

On This Page

INTRODUCTION

Microsoft Windows SharePoint Services 3.0 includes the Stsadm.exe tool for command-line administration of Windows SharePoint Services servers and sites. Microsoft has added a new operation to the Stsadm.exe tool. This operation is called the "renamesite" operation.

This article describes how to use the "renamesite" operation to change the URL of a host-named site collection to a new URL.

MORE INFORMATION

To obtain the "renamesite" operation, install hotfix 939592. Then, use the "renamesite" operation to change the URL of a host-named site collection to a new URL.

How to obtain the hotfix

For more information about hotfix 939592, click the following article number to view the article in the Microsoft Knowledge Base:
939592 Description of the Windows SharePoint Services 3.0 hotfix package: June 29, 2007

How to use the "renamesite" operation

To change the URL of a host-named site collection to a new URL, use the following syntax for the "renamesite" operation at a command prompt:
stsadm.exe -o renamesite -oldurl oldUrl -newurl newUrl
For example, an Stsadm.exe command-line command for the "renamesite" operation resembles the following command:
stsadm -o renamesite -oldurl "http://host-named site collection URL" -newurl "http://new host-named site collection URL"
Notes
  • The site collection will remain in the same Web application and content database after the change.
  • Make sure that the new URL is reachable in the Web application. This includes the protocol scheme, the host name, and the port number.
  • The new host-named site collection URL must not already be used as an Alternate Access Mappings URL.
  • You cannot use this tool to convert a host-named site collection to a path-based site collection or to convert a path-based site collection to a host-named site collection.
  • This tool does not work with a path-based site collection.
For more information about the Stsadm.exe command-line tool, visit the following Microsoft Web site:
http://technet2.microsoft.com/windowsserver/WSS/en/library/f9f9a3eb-ce46-4dbb-a15c-9fad9eb32ec71033.mspx

Properties

Article ID: 939535 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Windows SharePoint Services 3.0
Keywords: 
kbcommandline kbexpertiseinter kbwss30postrtm kbqfe kbbug kbfix KB939535

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com