Working with Managed Paths

Monday, June 11, 2007, 8:33
This news item was posted in Collaboration and Social Computing, Portals, Server Farm, Site News category and has 1 Comment so far.

Bob Fox has done a great job on providing screencasts for some administrative functions in SharePoint 2007 and we all hope he continues doing a great job. There are several screencasts that he has produced and today I’m going to focus on Working with Managed Paths [direct link to Managed Paths demo].

Why is this screencast important for a SharePoint 2007 administrator, simply because as a SharePoint 2007 administrator you need to managed paths. SharePoint needs to know which URLs it controls and which URL(s) can be used for Self Service Site creation. Managing paths can be an easy task but if its not planned then things can become daunting. Now lets get into what Bob Fox walks us through in his first screencast. Here’s a brief textual walkthrough:

  1. By defining a managed path you specify which paths in the URL namespace in a web application are used for site collections. You can specify one or more than one site collection exists in a specified path.
  2. For example, using an explicit inclusion, you are saying that http://server_name/team is a site collection but not any possible site collections below it; however, using wildcard exclusion allows you to specify child URLs under http://server_name/sites/* are also site collections.
  3. We are going to look into two different types of inclusion: explicit and wildcard
    1. Explicit inclusions — Includes only the specific path you set. Use explicit inclusions, for example, if you want Windows SharePoint Services to manage a specific path, such as /portal, but not any possible sites below it, such as /portal/webapp.
    2. Wildcard inclusions — Includes any sites below the path you set, so you don’t have to add them individually. This is the type of inclusion to use for Self-Service Site Creation, when you want users to be able to create top-level Web sites underneath a specific path, such as /sites.
  4. In an example environment, we have the following topology:
    • Projects
    • Sales
    • Amer
    • Emea
    • Development
    • Amer
    • Emea
  5. Projects site will be a wildcard inclusion, sales and development sites both want to have their own paths and below each there will be Amer and Emea.
  6. Lets go through each of these guys so we can get a better understanding.
  7. Click on Application Management using SharePoint 2007 Central Administration screen.
  8. Under SharePoint Web Application Management, select Define managed paths…

For the rest, why not check out the actual screencast by Bob Fox - Working with Managed Paths [direct link to Managed Paths demo]?

Managing Paths from the Command Line

You can use the addpath and deletepath operations to manage paths on the command line. Both operations take the -url and -type parameters. The -type parameter has three values: exclusion, explicitinclusion, and wildcardinclusion. For example, to add a new wildcard inclusion to manage all sites at the top level of http://server1, you would use syntax like the following:

stsadm -o addpath -url http://server1/ -type wildcardinclusion

You can also remove an included or excluded path by using the command line. For example, to remove an exclusion for the site at http://server1/hrweb/webapp, you would use syntax like the following:

stsadm -o deletepath -url http://server1/hrweb/webapp

[source: Administrator's Guide for Windows Sharepoint Services - Managing Paths]

Additional Resources:

Related Posts:

  • A Bit More on Managed Paths in SharePoint Server 2007
  • Bill English has a post on explaining what Managed Paths are and how he understands them, here is an excerpt: The path is the namespace that
  • Top SharePoint Links 07.15.07
  • Here are the top SharePoint links for last week of July 8th to 15th 2007 Free SharePoint Addons - There are some great Free SharePoint Addons
  • Top SharePoint Buzz Posts for June 2007
  • SharePoint Buzz had another amazing month of growth compared to May 2007. More than 11% growth in pageviews and 18% growth in visits.
  • 4 Additional Visual How To’s Just Released for SharePoint 2007
  • Last week, I notified you of the Just Released! Visual How To’s for SharePoint 2007 on MSDN, this week I just wanted to give you
  • Microsoft SharePoint Online Now LIVE!
  • If you have not heard, Microsoft SharePoint Online is now LIVE!  It has come out of beta and you have your SharePoint environment hosted and
    Both comments and pings are currently closed.

    One Response to “Working with Managed Paths”

    1. John said on Sunday, August 12, 2007, 20:56

      The information pertaining to excluding a path in WSS 3.0/SharePoint 2007 is incorrect. You can’t exclude a path with stsadm (or through the administration site). I know; I tried it and it doesn’t work. It did work in version 2.0.