In this article, let us discuss how to change the site collection URL, title, & logo in SharePoint 2013. Suppose in your company, you have already created your site collection & customized everything but later, your company decides to change the Site URL & title. What will you do?
So, let’s get started and learn how to achieve this.
For changing the site collection URL, we can proceed with two approaches.
- Using Power Shell Command.
- Using Back Up & Restore Site Collection.
Using PowerShell Command
Rename the site Collection URL by using Copy-SPSite command.
- Copy-SPSite http://swati/sites/Oldsite-DestinationDatabaseWSS_Content -TargetUrl http://swati/sites/Newsite
Now, run the Remove-Spsite to remove the old site.
OR, we can proceed with the below,
- Add - PSSnapin Microsoft.SharePoint.PowerShell - ErrorAction SilentlyContinue
- # Get the Source Site Collection URL
- $sourceURL = Read - Host http: //swati.tests.com/sites/source
- #Get the Target Site Collection URL
- $targetURL = Read - Host http: //swati.tests.com/sites/destination
- #Location
- for the backup file
- $backupPath = Read - Host“ Enter the Backup Filename & location(E.g.D: \Swati\ Source.bak): ”Try {
- #Set the Error Action
- $ErrorActionPreference = "Stop"
- Write - Host "Backing up the Source Site Collection..." - ForegroundColor DarkGreen
- Backup - SPSite $sourceURL - Path $backupPath - force
- Write - Host "Backup Completed!`n"
- #Delete source Site Collection
- Write - Host "Deleting the Source Site Collection..."
- Remove - SPSite - Identity $sourceURL - Confirm: $false
- Write - Host "Source Site Deleted!`n"
- #Restore Site Collection to new URL
- Write - Host "Restoring to Target Site Collection..."
- Restore - SPSite $targetURL - Path $backupPath - Confirm: $false
- Write - Host "Site Restored to Target!`n"
- #Remove backup files
- Remove - Item $backupPath
- }
- catch {
- Write - Host "Operation Failed. Find the Error Message below:" - ForegroundColor Red
- Write - Host $_.Exception.Message - ForegroundColor Red
- } finally {
- #Reset the Error Action to Default
- $ErrorActionPreference = "Continue"
- }
- write - host "Process Completed!"





sweta nayakPosted Mar 25, 2019, 1:49 AM
I cannot see Web Site address under the page
Tapan MallickPosted Oct 6, 2017, 7:07 AM
Nice one sister ................