Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
1.3k views
in SharePoint Online by 37 41 48

I have a SharePoint Online site collection with an existing URL that I want to change. However, I'm not sure how to rename the site collection URL. Can someone please guide me through the steps or provide instructions on how to rename the site collection URL in SharePoint Online? I want to ensure that the process is carried out smoothly without any negative impact on the site's content or functionality.


1 Answer

1 like 0 dislike
by 159 200 385
selected by
 
Best answer

Edit site Site Address URL in SharePoint Online

It mainly depends on which URL you would like to change, Is it the main domain name (https://yourdomain.sharepoint.com/) or a site under the main domain name (https://yourdomain.sharepoint.com/sites/site1)?

Change site Site Address URL in SharePoint Online

In case, you need to change a site URL from https://yourdomain.sharepoint.com/sites/site1 to https://contoso.sharepoint.com/sites/site2, You can rename a SharePoint Site URL in SharePoint Online in two ways as stated below:

  1. Rename the site collection URL in SharePoint Online using Admin Center
  2. Rename the site collection URL in SharePoint Online using PowerShell

Note: Changing the site address isn't supported in the following situations:

  • The Publishing feature is currently activated or was previously activated for the site.
  • The site contains more than 15 million documents.

1) Rename the site collection URL in SharePoint Online using Admin Center

  1. As SharePoint Admin or Global Administrator, Sign in to your SharePoint Online site.
  2. Go to the SharePoint Admin Center by clicking on the "Admin" app launcher.
    Open Microsoft 365 Admin Center
  3. In Microsoft 365 Admin Center, select "SharePoint".
    Open SharePoint Admin Center
  4. In the SharePoint Admin Center, click on "Active sites" from the left navigation pane.
  5. Locate the site collection for which you want to rename the URL and click on it to select it.
    change a site collection in SharePoint Online
  6. In the site details panel on the right, and below Site Info, you can click on Edit to change the current site URL.
    rename a site collection in SharePoint Online
  7. Provide the new address and click Save.
    Edit SharePoint Address in SharePoint Online

    Note: It can take about 10 minutes to change the site address (depending on the size of the site), and the site will be read-only during this time. We recommend changing addresses during times when site usage is low.

2) Change site address URL in SharePoint Online using PowerShell

It's preferred to use SharePoint PowerShell when you need to rename a site address in SharePoint online.
Below is the PowerShell script that can be used to edit a site address in SharePoint online.

  1. Download the latest SharePoint Online Management Shell.
  2. Connect to SharePoint as a Global Administrator or SharePoint Administrator in Microsoft 365.

     # Connect to SharePoint Online
     Connect-SPOService -Url "https://yourdomain-admin.sharepoint.com"
    
  3. Run the following command to verify that the site address can be changed:

     Start-SPOSiteRename -Identity <SiteURL> -NewSiteUrl <NewSiteURl> -ValidationOnly
    
  4. Run the following command to change the site address:

     Start-SPOSiteRename -Identity <SiteURL> -NewSiteUrl <NewSiteURl>
    

Change Main domain Address in SharePoint Online

As we earlier mentioned the above method is to edit the site address below the main domain address, however, if you need to edit the main domain address for example from https://debugto.sharepoint.com to htps://devoworx.sharepoint.com, you have to do the following:

  • Go to https://aka.ms/SPORenameAddDomain
  • Select Add a custom domain.
    add custom sharepoint domain
  • In the Custom domain name box, enter the full new “.onmicrosoft.com” domain, and then select Add domain.
    new custom sharepoint domain

Changing your SharePoint domain name might take several hours to days depending on the number of sites and OneDrive users that you have. We strongly recommend that you make this change during a period of low usage.


See Also

by 37 41 48
0 0
Many thanks for this detailed answer
If you don’t ask, the answer is always NO!
...