|
Todd Klindt's home page > Todd Klindt's SharePoint Admin Blog > Posts > Renamesite doesn’t do what you think it does
|
| Along with mergecontentdbs another operation has been recently added to STSADM, renamesite. KB939535 gives some guidance on how to use this new operation. At first glance, I assumed it worked like renameweb, which was nice as there is no way to rename site collections without locking them, backing them up, deleting them and restoring them with the new name. After I read the KB I was disappointed. It seems that renamesite does not work with path-based site collections. A path-based site collection is in the form of http://server/sites/sitename. 99% of the installations I see are in the form. Instead, renamesite only works with host-based site collections. Host-based site collections are site collections that are created using host header mode. Host header mode allows multiple site collections in the same web application, but all have top level names like http://host1 and http://host2. If you're using host header mode, you can use renamesite to rename them. If you're using path-based site collections like most of the SharePoint using world, then this operation is useless to you.
tk |
ShortUrl \_layouts\Images\ShortUrl\ShortUrl.png /_LAYOUTS/ShortUrl/Default.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 105 Copy ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Copy.png /_layouts/ShortUrl/copytoclipboard.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 106 Copy OWA ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Copy.png /_layouts/ShortUrl/CopyToClipBoardOWA.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x0101 106 Email ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Send.png /_layouts/ShortUrl/EmailLink.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 106 Compliance Details javascript:commonShowModalDialog('{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/Reporting.aspx?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false;}}, null); return false; 0x0 0x1 ContentType 0x01 898 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsx 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsm 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsb 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType ods 255 |
|
ShortUrl \_layouts\Images\ShortUrl\ShortUrl.png /_LAYOUTS/ShortUrl/Default.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 105 Copy ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Copy.png /_layouts/ShortUrl/copytoclipboard.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 106 Copy OWA ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Copy.png /_layouts/ShortUrl/CopyToClipBoardOWA.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x0101 106 Email ShortUrl \_layouts\Images\ShortUrl\ShortUrl_Send.png /_layouts/ShortUrl/EmailLink.aspx?ListItemID={ItemId}&ItemUrl={ItemUrl} 0x0 0x0 ContentType 0x01 106 Compliance Details javascript:commonShowModalDialog('{SiteUrl}/_layouts/itemexpiration.aspx?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/hold.aspx?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/Reporting.aspx?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+'/_layouts/expirationconfig.aspx?ID={ItemId}&List={ListId}'); return false;}}, null); return false; 0x0 0x1 ContentType 0x01 898 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsx 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsm 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType xlsb 255 View in Browser /blog/_layouts/xlviewer.aspx?id={ItemUrl}&DefaultItemOpen=1 0x0 0x1 FileType ods 255 |
|
|
|
|
|