Configure Managed Paths in SharePoint 2010

InfoPath alternatives for form designing SharePoint

In this post we will discuss how to configure managed paths in SharePoint 2010. Also you can check out:

– Alerts in SharePoint 2013

– How to create a Site Definition using Visual studio 2010 in SharePoint 2010?

– Enable Anonymous access to a SharePoint 2013 site

A managed path is a location within a web application in which you can have site collections.

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

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

3) 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 paths allows in 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

In Powershell, How to add a Managed Path:

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 :

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.

Similar SharePoint 2013 Tutorials


Leave a Reply