Export (0) Print
Expand All
3 out of 5 rated this helpful - Rate this topic

Define managed paths in SharePoint Server 2013

Published: January 15, 2013

Summary: Learn how to add a managed path for a web application in SharePoint 2013.

Applies to:  SharePoint Server 2013 | SharePoint Foundation 2013 

When you define managed paths, you can specify the paths in the URL namespace of a web application to use for site collections. You can specify that one or more site collections exist at a specified path. This can be a convenient method of combining multiple site access for users in various departments.

An explicitly named path (for example, http://server/sites/team) is used for a single site collection. Appending a wildcard to the path (for example, http://server/sites/), you indicate that child URLs of the path are site collections.

Important Important:

Do not use “/*” to indicate wildcard managed sites at the root of the site collection. This type of wildcard prevents a site from being created at the root of the web application, which is required for some SharePoint features to work.

In this article:

Before you begin

note Note:

Because SharePoint 2013 runs as websites in IIS, administrators and users depend on the accessibility features that browsers provide. SharePoint 2013 supports the accessibility features of supported browsers. For more information, see the following resources:

Define managed paths for a web application by using Central Administration

Use the procedures that are described here to add or delete managed paths for a web application by using Central Administration.

To add a managed path by using Central Administration

  1. Verify that the user account that is performing this task is a member of the Farm Administrators SharePoint group.

  2. On the the SharePoint Central Administration website, click Application Management.

  3. On the Application Management page, click Manage web applications.

  4. Click the web application for which you want to manage paths.

    The ribbon becomes active.

  5. In the Manage group of the ribbon, click Managed Paths.

  6. On the Define Managed Paths page, in the Add a New Path section, type the path to include.

  7. Click Check URL to confirm the path name.

  8. In the Type list, select either Wildcard inclusion or Explicit inclusion to identify the type of path.

    The Wildcard inclusion type includes all paths that are subordinate to the specified path. The Explicit inclusion type includes only the site that is indicated by the specified path. Sites subordinate to the specified path are not included.

  9. Click Add Path.

  10. When you have finished adding paths, click OK.

To remove a managed path by using Central Administration

  1. Verify that the user account that is performing this task is a member of the Farm Administrators SharePoint group.

  2. On the the SharePoint Central Administration website, click Application Management.

  3. On the Application Management page, click Manage web Applications.

  4. Click the web application for which you want to manage paths. The ribbon becomes active.

  5. In the Manage group of the ribbon, click Managed Paths.

  6. On the Define Managed Paths page, in the Included Paths section, click the check box next to the path that you want to remove.

  7. Click Delete selected paths.

    Warning Warning:

    Be sure that you want to remove the selected path before you perform this action. You'll have no additional opportunity to confirm. Deletion is immediate.

  8. After you are finished removing paths, click OK.

Define managed paths for a web application by using Windows PowerShell

You can use the New-SPManagedPath cmdlet to add managed paths for a web application. You can use the Remove-SPManagedPath cmdlet to remove managed paths from a web application.

The New-SPManagedPath cmdlet adds a new managed path to a given web application. For use with all host header site collections, use the –HostHeader parameter. For new deployments in SharePoint 2013, we recommend that you use the HostHeader parameter. The managed path is shared among all host header site collections. Otherwise, you must specify a web application in which to create this managed path. The relative URL is a partial URL that represents the managed path. When the slash (/) is used, the root is defined. If the Explicit parameter is not provided, the new managed path is a wildcard path.

To add a managed path by using Windows PowerShell

  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.

    note Note:

    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.

  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      1. On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following command:

    $webapp = Get-SPWebApplication
    
    
    New-SPManagedPath [-RelativeURL] "</RelativeURL>" -WebApplication $webapp -HostHeader
    

    Where:

    • <-RelativeURL> is the relative URL for the new managed path. The type must be a valid partial URL, such as site or sites/teams/.

    • <-WebApplication> is the web application group to which to add this path.

    • <-HostHeader> is a switch to indicate to use managed paths to be used for host header site collections.

For more information, see New-SPManagedPath.

note Note:

We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.

To remove a managed path by using Windows PowerShell

  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server instance.

    • db_owner fixed database role on all databases that are to be updated.

    • Administrators group on the server on which you are running the Windows PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.

    note Note:

    If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Add-SPShellAdmin.

  2. Start the SharePoint 2013 Management Shell.

    • For Windows Server 2008 R2:

      1. On the Start menu, click All Programs, click Microsoft SharePoint 2013 Products, and then click SharePoint 2013 Management Shell.

    • For Windows Server 2012:

      • On the Start screen, click SharePoint 2013 Management Shell.

        If SharePoint 2013 Management Shell is not on the Start screen:

      • Right-click Computer, click All apps, and then click SharePoint 2013 Management Shell.

    For more information about how to interact with Windows Server 2012, see Common Management Tasks and Navigation in Windows Server 2012.

  3. At the Windows PowerShell command prompt, type the following command:

    Remove-SPManagedPath [-Identity] <ManagedPathName> -WebApplication <WebApplication>
    

    Where:

    • <ManagedPathName> is the name of the managed path to delete.

    • <WebApplication> is the identity of the web application that hosts the managed path to delete.

    You are prompted to confirm the deletion.

For more information, see Remove-SPManagedPath.

note Note:

We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.