Fix MySites URL's


  • Hello,

    I have been working on fixing our sharepoint database after upgrade. Our mysites is not working I found out the other day when trying to use it. We have the sites under the same site collection as it is a very small deployment.

    I can access the site when go directly to URL.

    I.E. -

    I changed the Setup My sites to as follows:

    It seems as though no matter what I put in the personal site location it never changes the URL's on the main pages for Newsfeed, OneDrive, Sites.

    It puts whatever I have in the My Site host. But if I put it shows personal on the URL but when I click it goes searching for wrong location.

    Any help on what to check or to get it working would be appreciated.


    Wednesday, April 5, 2017 3:34 AM

All replies

  • Can you be more precise on what URLs you are using and what URLs it uses for the 'Wrong Location'?

    You do not have all your mysites under one site collection. That is impossible. What you probably have is a MySites Host Site Collection at http://url.domain/ and then MySite Site Collections under the 'personal' managed path in the same content database but that's fairly normal.

    Having typed all of this, it's probably just that you need to go through a few hoops to update your mysites host URL and it's not obvious how to do that. This blog post covers it:

    Wednesday, April 5, 2017 8:43 AM
  • Alex,

    Thanks for reply.

    Yes the URL is as follows for site collection. Then the MySites should be

    I read through your blogpost but I am not trying to create a new site with extending. I am trying to avoid having a separate URL for MySites as I would like it to be under the same so we don't have to expose multi external ip addresses.

    As for the wrong URL when you hover over or click on newsfeed, onedrive, sites. It shows just the root URL of and is not adding the /personal to the end like it shows in the My Sites Setup.



    Wednesday, April 5, 2017 1:31 PM
  • I see, you want to use the same web application for both the mysites and the main content of your SharePoint farm. I haven't tried it and can't state it's impossible but i don't believe it's possible or a good idea (edit, it seems it is possible but i don't like it as an approach). SharePoint assumes that the MySites web application has a root site collection with a particular template.

    I suspect you'll spend more money and time trying to work around this, let alone when you next try to update or upgrade, than accepting it and buying another domain and certificate i'm afraid. But I should stress that i'm not certain on this, so please let me know if you do manage it.

    Edit: Thanks Ryan for the correction, it is possible, but i still don't like it as an approach.
    Wednesday, April 5, 2017 1:45 PM
  • You can certainly have a mysites host in the same web application as your content, it's not necessarily a good idea.  

    If you're wanting to change the MySite URL after it has already been set, you'll have to do so through powershell likeso:

    $site = get-spsite
    $context = Get-SpServiceContext $site
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $profileManager. MySiteHostUrl = “http://newsiteURL”

    Recreate the UPSA (boo)

    MCITP-EA | "Never test how deep the water is with both feet"

    • Edited by ThatGuyRyan Wednesday, April 5, 2017 3:34 PM
    Wednesday, April 5, 2017 3:33 PM
  • So would the mysite URL be ? Or how do I specify the username at the end.
    Wednesday, April 5, 2017 3:57 PM
  • Hi Chris,

    Do you mean you want to set the root site collection as My Site Host Location?

    Per my knowledge, we can create a my site host in the same web application. However if we want to get the personal sites as http://sites/personal/username, we need to set the My Site Host Location as a MySite template site but not a normal site.

    So if the location you put in My Site Host Location is not the My site template site, I suggest you creating a new site collection under the same web application.

    Best regards,

    Grace Wang

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, April 26, 2017 2:59 AM