Renameweb: Stsadm operation (Office SharePoint Server) | |
Stsadm command-line tool (Office SharePoint Server) > Stsadm operations (Office SharePoint Server) > Site management: Stsadm operations (Office SharePoint Server) > |
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Operation name: Renameweb
Description
Changes the URL of a subsite.
Note: |
---|
In addition to the standard security requirements of Stsadm, you must have been granted the Manage Web Site permission on the subsite you want to rename to perform this operation. |
Syntax
stsadm -o renameweb
-url <URL name>
-newname <new name>
Parameters
Parameter name and short name |
Value |
Required? |
Description | ||
url |
A valid URL name, such as http://server_name/sites/site_name/subsite_name |
Yes |
The URL of the subsite you want to rename.
| ||
newname (new) |
A valid string name, such as "NewWeb" |
Yes |
The new subsite name. |
Example
The following example uses the following site: http://server_name/sites/site_name/subsite_name.
To rename a URL using the newname parameter, use the following syntax:
stsadm -o renameweb -url http://server_name/sites/site_name/subsite_name -newname NewWeb
The URL of the subsite would become http://server_name/sites/site_name/NewWeb.