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.
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:
- #Get the Target Site Collection URL
- $targetURL = Read - Host http:
- #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!"
Using Back Up & Restore Option
In SharePoint 2007(MOSS), we can use stsadm command to rename the site Collection URL. Follow the below Steps:-
Step 1
Backup the source site collection using STSADM command.
- stsadm -o backup -url http:
Step 2
Delete the Source Site collection using STSADM command (It’s bound otherwise you will get an error).
- stsadm -o deletesite -url http:
Step 3
Restore the back up with targeted URL.
- stsadm -o restore -url http:
Note
In SharePoint Online, you couldn't change the Site Collection URL. You can change the Sub-site URL using Out Of Box Features.
So, let’s check out this with SharePoint Online. Follow below steps,
On the subsite, go to the Site Settings page. Then, under the "Look and Feel" header, click "Title, description, and logo". On the next page, at the very bottom, there is a section called "Web Site Address". You can change the URL here.
We can also change the Site Logo on the same page over here. Before you change the Logo, you have to keep your image inside your Document Library, then copy the same path and paste over here.
We can also change the Title of the page in the same location over here.
Once everything will be completed, click on OK button & go to the Homepage. Now, you can check your Homepage where everything is updated.
So, these are the steps to update URL, Title, and Logo in SharePoint Site.