Changing the Site URL in SharePoint Online

Introduction

SharePoint Online is a powerful platform that enables teams to collaborate, share documents, and manage projects smoothly. However, as your organization evolves, you may find the need to change the URL of your SharePoint site to better align with your branding, organizational structure, or other requirements. Luckily, SharePoint Online offers a straightforward process to change the site URL without losing any content or data. In this blog, we'll guide you through the steps to accomplish this task effortlessly.

Step 1. Access SharePoint Admin Center

To begin, you'll need administrative privileges to access the SharePoint Admin Center. Navigate to the Microsoft 365 admin center (admin.microsoft.com), then select "Show all" and click on "SharePoint" to access the SharePoint Admin Center.

SharePoint Admin Center

Step 2. Choose the Site Collection

In the SharePoint Admin Center, select "Active sites" from the left-hand menu. Here, you'll see a list of all your site collections. Locate the site for which you want to change the URL and click on it to select it.

Step 3. Open Property Pane

Open the property pane configuration for the selected site by clicking it. Then click on edit button underearth site Address.

Choose Site collection

Step 4. Enter the New URL

In the " SharePoint site address " dialog box, enter the new URL for your site. Keep in mind that the new URL must be unique within your organization's domain. SharePoint will automatically check for availability and provide suggestions if the entered URL is not available.

New URL

Step 5. Review and Confirm

Once you're satisfied with the changes, click on the "Save" button to proceed. After clicking, you’ll be prompted to change the site name accordingly to your requirement update site name. Click on the Save button. SharePoint will proceed with updating the site URL.

Change site name

Change Site Address using PnP PowerShell

$adminUrl = "https://yourtenant-admin.sharepoint.com"
$oldUrl = "https://yourtenant.sharepoint.com/sites/oldurl"
$newUrl = "https://yourtenant.sharepoint.com/sites/newurl"

Connect-PnPOnline -Url $adminUrl -Interactive
Rename-PnPTenantSite -Identity $oldUrl -NewSiteUrl $newUrl

Replace “https://yourtenant.sharepoint.com/sites/oldurl” with the current URL of the site and “https://yourtenant.sharepoint.com/sites/newurl” with the desired new URL. After executing the command, verify that the site address has been updated correctly. You can do this by accessing the site using the new URL in a web browser.

Conclusion

Changing the site URL in SharePoint Online is a straightforward process that can be accomplished with just a few simple steps. Before making any changes, ensure that you have a backup of all critical data within the site collection. While changing the site address typically doesn't result in data loss, it's always wise to have a backup as a precautionary measure.

If possible, perform the site address change in a sandbox or development environment first to ensure that everything works as expected without impacting the production environment. Before changing the site address, verify if there are any dependencies on the current URL, such as custom scripts, workflows, or external integrations. Ensure that these dependencies are updated to reflect the new URL.