Quickly Migrate SharePoint Path-based to Host-named Site Collections

The February 2015 Public Update introduced a change to quickly allow you to migrate a Path-based Site Collection to a Host-named Site Collection. Here is how you would use this feature.

$uri = New-Object System.Uri("http://host.example.com")
$site = Get-SPSite http://siteUrl

And that’s it! You’ve migrated http://siteUrl to http://host.example.com.

Trevor Seward is a Microsoft Office Apps and Services MVP who specializes in SharePoint Server administration, hybrid scenarios, and SharePoint Online. He has been working with SharePoint for 16 years from SharePoint 2003 on up, managing environments with terabytes of content for 150,000+ user organizations. Trevor is an author of Deploying SharePoint 2016 and Deploying SharePoint 2019. You can find him on Twitter and in /r/sharepoint.