I have a SharePoint site collection at following url:
http://<server name>/sites/abc
Due to some reasons I have to change the url toÂ
http://<server name>/sites/def
How can we do this?
I think this is not supported, as only host part for a host header site collection or the last segment after a wildcard managed path of a site collection Url can be renamed.
In this case, I think you have to backup and restore your site collection, which works as well.
Use Backup-SPSite http://<server name>/abc -path “C:\backup.bak”
Then Restore-SPSite http://<server name>/def -path “C:\backup.bak”