2

I have to rename the /Sites directory to /Tasks.

Eg. http://pc18:1818/sites/task1 to http://pc18:1818/tasks/task1.

Is this Possible? How can I do this?

1 Answer 1

2

Yes, you can achieve this via Powershell by using the following script to rename sub-site / site collection

$site = Get-SPSite http://pc18:1818/sites/task1 
$uri = New-Object System.Uri("http://pc18:1818/tasks/task1") 
$site.Rename($uri)

Then force the Content Database to refresh its site map with this:

((Get-SPSite http://pc18:1818/tasks/task1).contentdatabase).RefreshSitesInConfigurationDatabase

Then perform IISRESET

For more details check the detailed story at How to Rename SharePoint 2013 Site Collections Without Prayer or Sobbing

2
  • I don't want to rename the site collection! I want to rename the Sites directory. Is it possible with the above solution? I'll check it soon!
    – Ram
    Commented Dec 5, 2016 at 10:51
  • yes , it's also working with subsite , try to check it in a test subsite and tell me result :) then apply it to real subsite Commented Dec 5, 2016 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.