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?
You can use:
Set-SPSite -identity http://<server name>/sites/abc -url http://<server name>/sites/def
After some testing, I found that running an IISRESET is needed in order for it to work completely.
Sara’s solution is great for renaming a subsite, however it is not possible to change the site collection URL with this unfortunately.