Sunday, May 10, 2009

Host Header for site collection

Scenario:
Yes , you read it right. I came to know about this few min back only while reading MSDN article.

Solution:
STSADM -o createsite operation has an undocumented property host header ( -hhurl )

Code:

stsadm -o createsite -url http://training.localhost.com -sitetemplate STS#1 -owneremail administrator@localhost.com -ownerlogin Domain\administrator -title TestHostHeader -hhurl http://localhost
Article:
http://msdn.microsoft.com/en-us/library/dd578332.aspx
http://sharepoint.microsoft.com/blogs/zach/Lists/Posts/Post.aspx?List=90bbfd11-c9a5-45cf-a77e-19559aae81ae&ID=38

0 comments: