Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8039691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:39:16+00:00 2026-06-05T03:39:16+00:00

So I am trying to set up in sitecore to handle multi site set

  • 0

So I am trying to set up in sitecore to handle multi site set up with two different host headers. But no matter what I do it always reverts to default site with either host header.

So At the moment my default is in my web config as follows :

<site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/Home Page" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" hostname="localhost" loginPage="/Account/SourceLoginRouter" />

And the new one I am trying to add in then

<site name="SmartEmea" hostName="secondSite" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/SmartEmea" startItem="/Home" database="master" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" language="nl-NL" customLinkManager="ValtechLinkManager"/>

And my host file is as follows

127.0.0.1       localhost
127.0.0.1       secondSite

But no matter what it always reverts to website and its rootpath of /sitecore/content

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:39:19+00:00Added an answer on June 5, 2026 at 3:39 am

    You must make sure the “website” <site ... /> node is LAST of all of the configured sites. This “website” node acts as a catch-all. As a request come in, it goes down the <site ... /> nodes and matches against each hostName until it find a site to run. If you have “website” first, it will just run since it catches on any host.

    E.g.

    <site name="SmartEmea" hostName="secondSite" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/SmartEmea" startItem="/Home" database="master" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" language="nl-NL" customLinkManager="ValtechLinkManager"/>
    <site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/Home Page" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" hostname="localhost" loginPage="/Account/SourceLoginRouter" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to set up a self signed certificate, for our intranet's web services site.
im trying to set the height of two divs on my page, because my
I am trying set up a simple dropdown list but I dont seem to
Trying to set up an encrypted connection for an intranet site. It's for a
Im trying to set my tabs as a scrollbar. I have 6 tabs but
I'm trying set an text AND X (Close) label in header of rich:panel, but
Trying to set up a project but fail at Autowiring objects through Spring. package
Trying to set cache response headers on a dynamically-generated image, I'm getting a weird
Trying to set up a cassandra cluster, but it tells me that I have
been trying to set up a webserver with uk2.net all day but i keep

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.