How to Create a Host-Named Site Collection in SharePoint 2013

 

Traditionally, SharePoint has utilized path-based site collections when it comes to creating site collections.  For SharePoint 2013; however, Microsoft has introduced a new type of site collection configuration: Host-Named Site Collection (HNSC). This new type of configuration enables you to assign a unique hostname to a site collection so that it doesn’t share the same hostname as a path-based site collection. In addition, the HNSC allows you to create numerous sites within a single Web application.

In this article, we’ll walk you through the steps needed to create a host-named site collection using Windows PowerShell.

Before you begin, make sure that the user running the Windows PowerShell cmdlets has the following memberships on all databases that will be used:

  • db_securityadmin
  • db_owner

Step 1: Create a Web application

Run the following command in the SharePoint 2013 Management Shell with the port number, URL, etc. that are applicable to your site.

New-SPWebApplication -Name <name> -port <number> -ApplicationPool <name> -ApplicationPoolAccount (Get-SPManagedAccount <account>) -AuthenticationProvider (New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication)

In this example, I am using the display name Test Host and the following URL: http://chauo15sql:10000/

Step 2: Create a root site collection

Run the following command in the SharePoint 2013 Management Shell with the server name, etc. that is applicable to your site.

New-SPSite ‘http://<servername>’ -Name <name> -OwnerAlias <account> -Language <number> -Template <template name>

Please reference this article from TechNet if you need assistance with template naming.

Step 3: Create a host-named site collection

Run the following command in the SharePoint 2013 Management Shell with the server name, etc. that is applicable to your site.

New-SPSite <URL> -HostHeaderWebApplication ‘http://<servername>’ -Name <name> -OwnerAlias <account> -Language <number> -Template <template name>

Once again, please reference this article from TechNet if you need assistance with template naming.

To finish, add the host to your SharePoint site and run the site.


SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019 – Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

We Have What You Need

Bamboo Solutions

About


Blogs


Webinar & Events


Twitch


Culture & Diversity

 

 

Bamboo Solutions

Tools


Resources


Bamboo Installer

 

Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!