1

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

Url
---
http://spdev01
http://spdev01/default
http://spdev01/sites/abc
http://spdev01/sites/xyz
http://devsite.test.com
http://tubesite.test.com
http://tubesite.test.com/mysite/abc
http://tubesite.test.com/mysite/xyz

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

2 Answers 2

0

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 'http://tubesite.test.com' -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!

0

These are called "host-named site collections". There is a detailed article about them on TechNet: http://technet.microsoft.com/en-us/library/cc424952.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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