Microsoft KB Archive/939535

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

Article ID: 939535

Article Last Modified on 9/11/2007

-

APPLIES TO


 * Microsoft Windows SharePoint Services 3.0

-



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 &quot;renamesite&quot; operation.

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



MORE INFORMATION
To obtain the &quot;renamesite&quot; operation, install hotfix 939592. Then, use the &quot;renamesite&quot; 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 &quot;renamesite&quot; operation
To change the URL of a host-named site collection to a new URL, use the following syntax for the &quot;renamesite&quot; operation at a command prompt:

stsadm.exe -o renamesite -oldurl  -newurl

For example, an Stsadm.exe command-line command for the &quot;renamesite&quot; operation resembles the following command:

stsadm -o renamesite -oldurl &quot;http://host-named site collection URL&quot; -newurl &quot;http://new host-named site collection URL&quot;

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

Keywords: kbbug kbfix kbqfe kbcommandline kbpubtypekc kbexpertiseinter kbhotfixserver kbwss30postrtm KB939535

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.