SharePoint 2013/2010 Managed Path Tutorial

This SharePoint tutorial, we will discuss a managed path in SharePoint 2013/2010. How to configure a managed path in SharePoint 2013/2010. Also, we will discuss how to add/remove the managed paths in SharePoint using PowerShell.

SharePoint 2013 Managed Path

After you installed SharePoint 2013 then when you will try to create a site collection under a web application then the path it will take as http://Servername:port/Site/TestSite. But in real life, we will need a useful URL like:

http://Servername:port/HR
or

http://Servername:port/IT
http://Servername:port/IT/SharePoint
http://Servername:port/IT/Java

For this type of requirement, we have to create Managed Paths. Managed Paths are web application based. To create a managed path, Open your SharePoint Central Administration. Then click on Manage web applications under Application Management. This will open the list of web applications, select the particular web application. Then from the ribbon click on Manage -> then Managed Paths as shown in the fig below:

sharepoint 2013 managed path

This will be Define Managed Paths dialog box, where by default you can see default paths: (root) (Explicit inclusion)/sites (Wildcard inclusion).

Here we have to Add a New Path. There we can put the path whichever you want, in this case, I have put HR.

Then the “Type”. There are two types:

Explicit inclusion: If you do not want to create any further site collections under the specified path then we can use this option. Suppose you gave the path “HR”. Then you will be able not to be able to create a site collection under this http://Servername:port/HR.

Wildcard inclusion: But in Wildcard inclusion you will be able to create further site collections under the managed path. If you have given the path as “IT”. Then you can create site collections like /IT, /IT/SharePoint, /IT/Java.

In this case, I have chosen Explicit inclusion and then click on Add Path like below:

sharepoint 2010 managed path

It will appear below under the paths.

how to configure managed path in sharepoint 2013

Now create a site collection from the central administration. You will be able to see “/hr” path like below:

how to configure managed path in sharepoint 2010

Now we will try to add a Wildcard inclusion path. So again click on “Managed Paths” under Manage. in the ribbon.

In the Define Managed Paths dialog box, give the new path as “IT”. Then in the Type, choose Wildcard inclusion as shown in the fig below:

sharepoint managed path

Now after clicking on add path, the path will be added and will look like below:

SharePoint 2013 Managed Path Tutorial

Now if you will try to create a site collection, you will be able to see the path as “/IT” then you can give path like IT/SharePoint like below:

add a Managed Path using PowerShell in SharePoint 2010

Configure Managed Paths in SharePoint 2010

Now we will see how to configure managed paths in SharePoint 2010. A managed path is a location within a web application in which you can have site collections in SharePoint 2010.

Browse to Central Administration -> Applications Management -> Manage Web Application

Choose the web application where you want to implement managed paths.

Select Managed Paths from the ribbon

Explicit Inclusion:
When we are not planning to create further site collections under a specified managed path, then we use this option. Explicit Inclusion Managed path allows in the creation of only one site collection at the exact given URL.

In our case explicit would be the only site collection that can be created. SharePoint will allow creating only one site collection within this Managed Path.

The URL would be: http://servername:port/explicit

Wildcard Inclusion:
When we want to create more than one site collection under a specific managed path, we use this option. Wildcard Inclusion Managed Paths allow unlimited site collection to be created under a given URL.

In our case under wildcard, we can create any number of site collections.

The URL of these site collections would be as below:
http://servername:port/wildcard/sitecolelction1
http://servername:port/wildcard/sitecolelction2
http://servername:port/wildcard/sitecolelction3
http://servername:port/wildcard/sitecolelction4

How to add a Managed Path using PowerShell in SharePoint 2010?

You can use the New-SPManagedPath cmdlet to add managed paths for a Web application

Syntax:

New-SPManagedPath -RelativeURL "Relative URL" -WebApplication <Web Application URL>

“Relative URL” is the relative URL for the new managed path. The type must be a valid partial URL, for example, sites, teams, etc.

<WebApplication URL> is the Web application URL where you want to add this managed path.

How to Remove a Managed path using PowerShell in SharePoint 2010?

You can use the New-SPManagedPath cmdlet to add managed paths for a Web application

Syntax:

Remove-SPManagedPath -Identity <<Managed Path Name>> -WebApplication <Web Application URL>

“Managed Path Name” is the name of managed path.

<WebApplication URL> is the Web application URL where you want to add this managed path.

You may like following SharePoint tutorials:

This SharePoint tutorial, we learned SharePoint 2013 managed path, how to configure the managed path in SharePoint 2013/2010. How to add/remove a Managed Path using PowerShell in SharePoint 2010?

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>