SharePoint Home will only create path-based Site Collections.
Configure SharePoint Home to Create Host Named Site Collections
Hi, I am trying to use SharePoint Home page for creating new host named sites. When I configure by default, SharePoint is creating path based sites, not host named. Let me explain.
My web application URL is http://swazdbsp00. In this web application I created a host named site collection https://kans-sql2019sp2019oos02-swazdbsp00.westeurope.cloudapp.azure.com that hosts /_layouts/15/sharepoint.aspx page.
is there a way to configure SharePoint Home to create sites in the host named URL?
3 additional answers
Sort by: Most helpful
-
SUNOJ KUMAR YELURU 14,881 Reputation points MVP
2021-02-07T13:18:41.82+00:00 HI @SAPOZHKOV Aleksandr
SharePoint decides the mapping of the host Name with the Site Collection at the time of initializing SPSite Object. During the initialization process, SharePoint queries SPWebApplication object to see if host header details are associated with the Site Collection and if there is no information returned on host headers, then it becomes evident that this is a typical Site Collection.Please check if it could help at your side:
CREATING HOST-NAMED SITE COLLECTIONS IN SHAREPOINT
How To Create Host Named Site Collections
How to Create Host Named Site Collections in SharePointIf the Answer is helpful, please click
Accept Answer
and up-vote, this can be beneficial to other community members. -
Li Zhang_MSFT 1,566 Reputation points
2021-02-08T10:42:01.61+00:00 Hi @SAPOZHKOV Aleksandr ,
As trevorseward said, a host-named site collection couldn’t be created in SharePoint home page, we suggest you use Microsoft PowerShell to create a host-named site collection.
For more information, please refer to:
---------------------------------------------------------------------------------------------------------------------------------------------------------------
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
SAPOZHKOV Aleksandr 21 Reputation points
2021-02-08T11:04:34.127+00:00 Thanks for your answer Li Zhang! So, if I understand your suggestion correctly, then if our organization wants to use this wonderful site creation UI in SharePoint 2019, we must go with using path-based site collections instead of host-named, is that correct? If we generalize the suggestion also, host-named site collections are not recommended if we want to use new SharePoint 2019 features, right?