Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint 2010 - Change SiteCollection URL

Is there a easy way (like a PowerShell Command) to change the URL from a SiteCollection?

Or is the only way to export SiteCollection -> delete SiteCollection (Because the GUIDs)-> import SiteCollection?

like image 928
LaPhi Avatar asked Mar 21 '11 10:03

LaPhi


1 Answers

Yes that is correct. My script to move sites looks something like this:

stsadm -o backup -url "http://domain/sandpit/site" -filename "c:\site.dat"
#delete old site collection
#run gradual site delete job
stsadm -o restore -url "http://domain/sites/site" -filename "c:\site.dat"
like image 133
djeeg Avatar answered Sep 21 '22 00:09

djeeg