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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.