Forum Discussion
Aleksandr Sapozhkov
Mar 11, 2017Copper Contributor
Change URL for existing personal site
We have farm on SharePoint 2013 with profile services and personal sites.
Currently personal sites reside on http://mysites.contoso.com/personal/%username%.
We need to move personal sites to another URL, while root site collection, http://intra.contoso.com should remain in place, so alternative mappings is not a good option for us.
The desired personal sites URL is https://onedrive.contoso.com/personal/%username%.
We have changed URL settings in profile service application but for old users "Onedrive" button on the nav bar still redirects to http://mysites.contoso.com/personal/%username%.
We would move site collections by Backup-SPSite, Remove-SPSite and Restore-SPSite since we want to move from path based to host named.
But the question is how we make change in profiles or something so that clicking on "Onedrive" and "Sites" would redirect to the new URL.
- Aleksandr SapozhkovCopper Contributor
I think of trying deleting user profile and creating new one...
- Aleksandr SapozhkovCopper Contributor
After some experimenting I have realized that after some time since I've changed url in Profile Service Application the link for "OneDrive" has been also changed for existing users, which is what I basically expected. So I think there is nothing to discuss anymore here. Thanks!
- Dean_GrossSilver ContributorI'm curious, why do you need to move these sites to a new URL? what is wrong with the current url? what are you trying to accomplish?
- Aleksandr SapozhkovCopper Contributor
Hi Dean,
The reason is just that for the users URL should be meaningful and relevant to the content there.
I used fake URLs in this thread, so I'm sorry for confusing. I will try to draw a more detailed picture.
http://collaboration.contoso.com is in use for specific collaboration features
http://collaboration.contoso.com/sites/my is in use for my site (profile, newsfeed, etc.)
http://collaboration.contoso.com/personal/%username is in use for personal sites
So what we want is to logically separate personal sites from "collaboration" portal because that would correspond the current corporate vision of business processes structure. Specifically, structure should be like this:
http://collaboration.contoso.com is in use for specific collaboration features
http://onedrive.contoso.com is in use for my site (profile, newsfeed, etc.)
http://onedrive.contoso.com/personal/%username is in use for personal sites
Hope this makes sense.
- Dean_GrossSilver Contributor
This typically occurs automatically when the web app is created for the personal sites, if you follow the instructions at https://technet.microsoft.com/en-us/library/ee624362.aspx?f=255&MSPPError=-2147217396 you will achieve your goal.