How to Create Host Name Site Collection in SharePoint 2013

How to Create Host Name Site Collection in SharePoint 2013


To Create Host Name Site Collections, you have to follow below few steps as a summary.
  1. Before you create any site collection, first of all, create all the DNS Entries you need to create as host name site collections.
  2. Execute following through PowerShell command to create site collections with Host Name
    1. Create Web Application without a host header
    2. Create Root Site collection without any host header
    3. Create rest of the site collections as you want with Host Headers
  3. DO NOT create host header for Root Site Collection

  • Create Root Web Application (No Host Header)
  • Create Root Site Collection


New-SPSite 'http://sp2013-1' -Name 'Portal' -Description 'Portal on root' -OwnerAlias 'Domain\SpSetupAdmin' -language 1033 -Template 'STS#0'

Create Content Database if you want to have a separate database for the site collection Create Host Named Site Collection
New-SPSite ‘http://Alakamanda.Sigiriya.Lk' -HostHeaderWebApplication ‘http://sp2013-1' -Name 'Portal' -Description 'Customer root' -OwnerAlias 'Ra\SpSetupAdmin' -language 1033 -Template 'STS#0'


You can have Detailed information From TechNet

Popular posts from this blog

How to Create Host Header to SharePoint Web Application

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission - User Profile Issue

How to add PDF Icon in SharePoint