change sharepoint site url rename subsite url

User need to change sharepoint site url or site collectiion url that we call as top level site and rename the url of subsite of as well. Rename and change subsite address or url is not much difficult but change site url top level needs special attention. Renaming the site name not change the url, we need powershell to achive this. Run the below powershell command metioned below to change url of site in sharepoint.

$site = Get-SPSite http://win-q2repghf9du:44179/sites/SharePointTechnicalSupport
$site.Rename("http://win-q2repghf9du:44179/sites/SPMCSE")
Advertisements

After running the powershell script do an iis reset.

iisreset
Change sharepoint site collection url rename subsite url
Advertisements
Advertisements



Categories: administration, powershell script, SharePoint 2019, sharepoint server, site collection

Tags: , , , , , , , , , , , , , , ,

%d bloggers like this: