Not able to rename the subsite in sharepoint 2013

Rajiv Kumar 21 Reputation points
2021-12-16T11:09:50.21+00:00

I have created a subsite in SharePoint and after that wanted to change the url of the subsite but could not able to do and its throwing below error:
"XXX" cannot be used as a site name. Site names cannot contain certain reserved words and cannot begin with an underscore. Please enter a different name.

I have tried following things but still throwing same error:

Checked the managed path in central admin and did not get any managed path related to subsite name.

tried to execute below script through PowerShell still throwing same error.
"Get-SPWeb http://xxxx/chart1 | Set-SPWeb -RelativeUrl chart

Please help , how to change the subsite URL in sharepoint 2013.

Thanks

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,316 Reputation points
    2021-12-17T02:04:01.63+00:00

    Hello @Rajiv Kumar ,

    Welcome to Q&A Forum!

    Please follow the steps:

    1.Go to the subsite as a site admin

    2.Settings gear >> Site settings

    158421-1.jpg

    3.On the Site Settings page, click "Title, description, and logo" link

    158388-2.jpg

    4.On the Title, Description, and Logo page, scroll to "Web Site Address" section to change the URL name

    158387-3.jpg

    5.Wait for a few minutes to take effect

    158431-4.jpg

    Thanks,
    Echo Du

    ========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Rajiv Kumar 21 Reputation points
    2021-12-29T03:37:19.41+00:00

    Hi @Echo Du_MSFT ,

    Thanks for the time.

    Issue has been resolved. Actually site collections was hosted as HNSC so could not verify through UI. once we executed the script in PowerShell and get the results and after that we removed the "XXX' as hostname and able to rename the site.

    Thank you :)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.