Changing MySite links

168

When the User Profile Service is configured, settings are configured for the default location for all MySites, as well as the associated search location.   These two URLs are managed for all MySites; both current and MySites yet to be created.  If you try to change these values, you may find that the changes do not “stick”.  I was faced with a farm that had Web Applications originally created that referred explicitly to the Web Front End (WFE) server using a port number.   Moving to all friendly URLs instead of server names has the following advantages:

  • Easier Disaster Recovery (DR)
    You can route a DNS based URL to a different server, if need be
  • Easier load balancing
    The DNS can route to a Virtual IP (VIP) supported by Microsoft Server 2008, or via a dedicated hardware solution (such as a F5 BigIP or Kemp)
  • Shorter URLs
    Long URLs create problems a bit quicker, due to length restrictions.  This most often occurs through deeply nested folder names in SharePoint.
  • User Friendly URLs
    Enabling users to type “SharePoint”, “Search”, “MySite” or “Intranet” into the browser makes the user experience that much easier.

Adding a friendly DNS name is easily done through Alternate Access Method (AAM), but getting the friendly Web Application name into the User Profile Service took a bit of research.

To change these settings:

  1. Go into Central Admin
  2. Click “Manage Service Applications”
  3. Click “User Profile Service” (yours could have a different name, depending on what was chosen during installation)
  4. Click “Setup My Sites”
  5. Update the URLs for Search and MySite Location

Sharepoint 2010 Central Administation Screenshot

However, if your new URLs are not in the default zone, you are in for a surprise.  It turns out, that the User Profile Service actually pokes into the URLs you enter, and changes them back to the Default Zone for the URL.  How to fix?

Let’s change the Default Zone, by going into AAM:

  1. Go into Central Admin
  2. Click “Application Management”
  3. Click “Alternate Access Methods”
  4. Select your Web Application from the drop-down on the right
  5. Edit Public URLs

Default Zone Changing Option

There are a total of five zones available.  The “Default” zone is where you want your new friendly name to reside.  Note above that the “MySiteDev” is entered twice.  The second time as a Fully Qualified Domain Name (FQDN).  That’s best practice as fall-back for non-standard access to your sites; the FQDN is often a default trusted site in browsers in companies.

Now let’s make sure IIS is configured to handle your URLs:

  1. Logon to your SharePoint server
  2. Open IIS
  3. Open the Web Application
  4. Click “Edit Bindings”

IIS Configuration Screenshot

Before you start:

  1. For multiple WFEs, you will need to make the change to each WFE
  2. Make sure the new friendly DNS names are created
    A Records are best, for several reasons, including they will be required if you use or will migrate to Kerberos
  3. An IISReset is required
    At the very least the Web Application/Application Pools will need recycling.  A reboot is always best.
  4. Have your backup/restore strategy in place
    At the very least, keep your notes of all changes.  Note a server snapshot and a farm config DB backup is highly recommended.
  5. Test first in Development
    Do it all in Development first. I heard a very wise MVP once say “If you say you don’t have a Development Environment, what you really mean is that you don’t have a Production Environment!”

Share this entry

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents

Categories

Categories