SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to find the site collection on the dev system I could see the below and wondering how can a webapplication may have site collection like this?

Get-SPWebApplication http://spdev01 | Get-SPSite | select URL


I would like to make the site collection "" as my root "http:// spdev01" is that possible?

share|improve this question
up vote 0 down vote accepted

As John said, you could achieve it with host-named site collection. But, the URL to root site collection will be same as server name i.e.

New-SPSite 'http://spdev01' -Name 'Applications Portal' -Description 'Applications root collection' -OwnerAlias 'SomeDomain\SomeUser' -language 1033 -Template 'BLANKINTERNETCONTAINER#0'

That being said, you could then create your first host-name site collection:

New-SPSite '' -HostHeaderWebApplication 'http://spdev01' -Name 'Team sites' -Description 'Team site root' -OwnerAlias 'SomeDomain\SomeUser' -language 1033 -Template 'STS#0’

Since you're working on development machine, add the host header to your hosts file. For Production or UAT use the DNS.

Hope it helps!

share|improve this answer

These are called "host-named site collections". There is a detailed article about them on TechNet:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.