As administrator several time we require to move the site collection from one environment to another using the content DB backup and restore.URL those have relative path take by SharePoint itself but host based site collection require additional attention because those URL are not depend on web application.
We have 2 way either in new environment we took back of host based site first and restore with nee URL
or we can use few command and change the name
$site = get-spsite "URL NAME"
$site
$site.rename("New URL")
OR
stsadm -o renamesite -oldUrl http://HostHeader_1 -newUrl http://HostHeader_2
Hope this help you.
No comments:
Post a Comment