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 7576747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:59:46+00:00 2026-05-30T16:59:46+00:00

The Issue We have two sites, one domain, we want to setup a virtual

  • 0

The Issue

We have two sites, one domain, we want to setup a virtual directory on the domain which can access the second site.

IIS virtual directory doesn’t seem to do the trick, sitecore does not seem to play nicely.

Is there a potential work around using sitecore?

The Environment

We have the following folder structure for two of our sites:

  • C:\Sitecore\Site1

  • C:\Sitecore\Site2

Site 1 and Site 2 both connect to the same web, core and master databases.

To access the cms for both sites in the browser we do:

  • http://www.mysite1.com/sitecore

From Site 1’s cms we create content, layouts and templates for Site 1 and Site 2.

The Solution

What we did is in the first sites web.config we defined the site as normal:

<site name="site1" hostName="mysite1.com" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/MyItem1/" 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" />

In the second sites web.config we defined the site slightly differently:

<site name="site2" hostName="mysite1.com" virtualFolder="/Site2" physicalFolder="/" rootPath="/sitecore/content" startItem="/MyItem2/" 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" />    

The second site we defined a virtual folder which you can notice above that was the only difference along with the obvious start item differences.

Site 1 will respond like normal. You can visit mysite1.com it will load the start item relevant for website 1.

When you visist mysite1.com/Site2/ it will load the virtual folder defined in the second site and load its relevant start item.

That is pretty much it works like a charm.

And finally @Mark Ursino thanks for your help.

To Note

You need have sitecore scalability configs enabled for any of the above to work

  • 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-05-30T16:59:47+00:00Added an answer on May 30, 2026 at 4:59 pm

    From what I think I understand, I think you need to make some changes in the config to set the “sub-folder site” as a virtualFolder:

    <site virtualFolder="/subsite" physicalFolder="/subsite" rootPath="/sitecore/content" startItem="/MyItem/" 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" />
    

    Note that virtualFolder="/subsite" and physicalFolder="/subsite" point to the subfolder, but I don’t think you need that physical folder really there.

    Reference used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have app with two sites, one where design is done and other which
Situation: One WebApplication, two site collections. Both site collections have the same type and
I have two sites which I use the same cookie for login which works
I have a very strange issue on my hands. I have two IIS websites
What is the issue with this code? Here we have two files: classA.h and
I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0.
I have made a simple test application for the issue, two winforms each containing
been struggling with an issue now for a day or two. I have an
The issue at hand is this. We have a web application with two different
I have two issues both related to (I believe) my SQL Server setup. I

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.