How to rename SharePoint site and subweb

June 19th, 2009 | Categories: STSADM, WSS 2.0 | Tags: ,

To rename a sub site is basically very easy to execute. In this article, I use WSS 2.0 environment (pretty old :) ) to rename SharePoint sites. Let’s say we have the url like http://sharapoint.company.com/Internationl%20site/EmeaFS and it needs to be renamed as http://sharapoint.company.com/Internationl%20site/GlobalFS.

In SharePoint we have command line utility tool STSADM. The format to rename web is stsadm -o renameweb -url http://server/site/web1 -newname web2

Here we need to user the WFS instead of url sharepoint.company.com. So, if the web server name is cobldwsswd1, then the actual command would be Stsadm –o renameweb –url http://cobldwsswd1/International IT/EmeaFS/ -newname “GlobalFS”.

How to rename SharePoint site

How to rename SharePoint site

Please note how we need to take care the query parameter like %20 with SPACE in the command line parameter.

To rename top level SharePoint site, there is no specific STSADM command. You can just take a backup of this site and restore the same on new site. Below the example how you can take a backup of the Sharepoint site HR.
stsadm -0 backup -url http://cobldwsswd1/site/HR -filename “D:\SPSiteBackup\HR.dat”

Next action item is to create one site with the new name say HRManager and restore the HR site over there.
stsadm -0 restore -url http://cobldwsswd1/site/HRManager -filename “D:\SPSiteBackup\HR.dat” .

Last action item should be delete the existing HR site http://cobldwsswd1/site/HR.

Remarks:

  • You cannot use the Rename method to convert a host-header-named site collection to a path-based site collection or vice versa.
  • The new URL must be reachable in the Web application and must not already be used as an alternate access mapping URL.
  • If you have .Net 1.1 installed on your server, then first you need to create the new site i.e. HRManager in this example, and then you can restore the site. Otherwise you will get error message in the command tool that the site is not exist. However if you have .NET 2.0 installed on your machine, you can just do the same task in one shot as described in this article.
  1. Jenna
    June 24th, 2009 at 03:46
    Reply | Quote | #1

    Pretty nice post. I just came by your blog and wanted to say
    that I’ve really liked browsing your posts. Anyway
    I’ll be subscribing to your feed and I hope you write again soon!

  2. Himadrish
    June 24th, 2009 at 16:00
    Reply | Quote | #2

    Thank you for your word!

  3. February 13th, 2010 at 01:25
    Reply | Quote | #3

    Yes undoubtedly, in some moments I can reveal that I approve of with you, but you may be making allowance for other options.
    to the article there is still a suspect as you did in the decrease publication of this beg http://www.google.com/ie?as_q=becky! internet mail 2.44.00 ?
    I noticed the phrase you have in the offing not used. Or you partake of the dark methods of development of the resource. I possess a week and do necheg
    Your Ferrdenants :)