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

  • SEARCH
  • Home
  • 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 4595848
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:01:50+00:00 2026-05-21T23:01:50+00:00

I created site A successfully in sitecore and has deployed to production, now I

  • 0

I created site A successfully in sitecore and has deployed to production, now I want to add another site B to the same sitecore instance. I am aware of how to do this, but I am not sure how I can separate the two sites’ code (layouts, controls etc.) so that one is not truly dependent on other. Instead of combining both the sites in the same site A project in visual studio, I was wondering if I can create a new project for site B but still reuse sitecore files that are in site A’s project? What I am trying to understand really is the best practices in architecting multisite solutions in sitecore. Any ideas?
Note: site A and site B are totally different in every aspect except the fact that they need to run on same sitecore instance.

  • 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-21T23:01:51+00:00Added an answer on May 21, 2026 at 11:01 pm

    I recommend you separate each site’s assets into folders on the file system:

    /Website/
    /Website/sites/
    /Website/sites/SiteA  (<-- specific to SiteA)
    /Website/sites/SiteB  (<-- specific to SiteA)
    /Website/sites/Common (<-- shared across any sites)
    

    In Sitecore, do the same for your presentation components.

    - layouts
      - SiteA
      - SiteB
      - Common
      - Sublayouts
        - SiteA
        - SiteB
        - Common
    

    And the same for templates:

    Templates
      User Defined
        SiteA
        SiteB
        Common
    

    Separate out C# class libraries too so they’re specific to each site and have a common project for hared code (e.g. utility code for any site, extension methods, helper classes, etc). Visual Studio solution:

    - WebApp
    - SiteALib  (<- SiteA specific code)
    - SiteBLib  (<- SiteB specific code)
    - CommonLib (<- reusable code for any site)
    

    As for the sites in the content tree, separate them out too at the same level:

    sitecore
      content
        SiteA  (<-- root item for SiteA)
          home (<-- start item for SiteA)
        SiteB  (<-- root item for SiteB)
          home (<-- start item for SiteB)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a site using drupal 6.I want to show primary menu items only
I'm currently working on an ASP.NET site created by someone else. There is this
I created a page--front.tpl.php successfully. Is there a similar way to create an instance
I have created a custom SharePoint web service that was deployed to, and successfully
We have a site www.name1.domain.com for which we successfully created and implemented an SSL
I've created a paypal buy now button and integrated it successfully. When testing I
My site has been successfully verified against Google Webmaster. My crawler access with the
I created this in textpad because our instructor doesn't want us using IDE's. I
I created a site using wordpress. I installed the 'starkers' theme and modified it.
i created a site on my iis7 it's like http://localhost:88/my i also can access

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.