Apr 06 2022 02:36 PM
Hello
I have many /sites which uses the URL I now require for many communication sites. I am struggling how I can use the URL as its currently being used for a team site.
i.e /sites/IT - I want to change that to /teams/IT so that I can have a communication site addressed /sites/IT.
Any ideas how I can do this ?
Apr 14 2022 03:21 AM
Apr 19 2022 05:34 AM
I am aware of the setting under site creation but that is for new sites.
I have 120 existing sites which have the managed path /sites and they should be /teams how can I change this ?
Any help would be greatly appreciated.
I have set up under site creating for new sites to be set up as /teams and for comms sites to be /sites.
Thanks
Priya
Oct 23 2022 05:17 PM
Dec 05 2022 09:12 AM - edited Dec 05 2022 09:14 AM
I have this use case as well, where I would like to change existing sites connected to Teams (O365 Group-connected) to use the /teams/ prefix.
Feb 05 2023 11:32 PM
@priya216 @Star-D @MaximillianC @ChristianJBergstrom
Hey, i am trying to change my SharePoint-URLs in a migration project as well. I don't think that you can use the SharePoint Admin Center to change single /sites/ -sites to /teams/ -sites and vice versa but as always PowerShell is the answer.
Step-by-Step:
1. open PowerShell or ISE on your desktop.
2. install the module "Microsoft.Online.SharePoint.PowerShell"
3. connect to your SharePoint Admin-URL with PowerShell "https://[orgname]-admin.sharepoint.com/"
4. Login with a Tenant/Global- or SharePoint-Admin
5. get the URL of you current site you want to change "https://[orgname].sharepoint.com/sites/testSite"
6. change the url with the PowerShell-Command
7. Disconnect
PowerShell-Code:
# optional
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
# import module
Import-Module -Name Microsoft.Online.SharePoint.PowerShell
# connect to SPOService
Connect-SPOService -Url https://[orgname]-admin.sharepoint.com/
# Change URL
Start-SPOSiteRename -Identity https://[orgname].sharepoint.com/sites/testSite -NewSiteUrl https://[orgname].sharepoint.com/teams/testSite
# disconnect SPOService
Disconnect-SPOService
To change /teams to /sites just change the URLs.
To validate a change you can add -ValidateOnly to the Start-SPOSiteRenam Cmdlet.
# validate Cmdlet
Start-SPOSiteRename -Identity https://[orgname].sharepoint.com/sites/testSite -NewSiteUrl https://[orgname].sharepoint.com/teams/testSite -ValidateOnly
Hope i could help.
Reminder:
Communicate the Change with the users of the site and try to avoid changing URLs in business hours.
Best Regards
Dec 27 2023 08:42 PM