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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:04:39+00:00 2026-05-12T16:04:39+00:00

I have two IIS sites pointing to diffent physical folders. This is to be

  • 0

I have two IIS sites pointing to diffent physical folders. This is to be able to differentiate the web.config and the files and assemblies used for the sites
Database is set to point to the same instance for both sites
In web.config are configured to start from different parts
The stucture is like this:

  • /sitecore/content/home/default

  • /sitecore/content/home/intranet

So far so good.

Now, the problem is that i’m able to retrieve content not belonging to the actual site by entering its complete path. Ie.

http://www.default.com/sitecore/content/home/intranet.aspx <– this shouldn’t be allowed, since www.default.com is configured with /sitecore/content/home/default as root.

Is there any built-in mechanism to dissallow this or do i have to subclass the itemresolver to make “cross sites”-requests illegal.

  • 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-12T16:04:40+00:00Added an answer on May 12, 2026 at 4:04 pm

    This is something to do with how Sitecore resolves items, I have found 3 different URL’s for each item. For example say I have the following structure:

    -sitecore
      -content
        -home
          -page1
    

    I can access page1 either through:

    • http://mysite/sitecore/content/home/page1.aspx
    • http://mysite/page1.aspx
    • http://mysite/home/page1.aspx

    However knowing this won’t help solve your problem. The best solution I can suggest is to use security. However if both site need anonymous access the question is how do you control this?

    I imagine that since you have two separate web.config’s you also have to separate Sitecore configuration sections. So what we can do is create a pipeline process that runs as part of the http request begin pipeline (in the web.config as /configuration/sitecore/pipelines/httpRequestBegin) creating one for each site and updating the relevant web.config. When this process is called it could create a virtual user who belongs to a group which restricts access to the site the user requested.

    There is some code here that shows you how to create a virtual user:

    And here on pipelines:

    Hope this helps 🙂

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

Sidebar

Related Questions

Have two folders with approx. 150 java property files. In a shell script, how
I've two web sites running on my IIS 7.5. Both on port 80. Since
I have two physical servers. The old one runs an ASP.NET site on IIS
Currently I have two sites setup in IIS. Primary Site (Uses HTTPs and requires
I have two exactly the same web sites hosted in two different machines under
I have a website setup in IIS with one web.config set at the root
I have a very strange issue on my hands. I have two IIS websites
I have a very strange behavior with Request.Form . Here are two IIS 7
if i have two IIS servers 5v on one network running winxp each hosting
I have two websites running on the same IIS instance on the same 2008

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.