Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>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:</p> <pre><code>-sitecore -content -home -page1 </code></pre> <p>I can access page1 either through:</p> <ul> <li><code>http://mysite/sitecore/content/home/page1.aspx</code></li> <li><code>http://mysite/page1.aspx</code></li> <li><code>http://mysite/home/page1.aspx</code></li> </ul> <p>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?</p> <p>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. </p> <p>There is some code <a href="http://sdn.sitecore.net/Scrapbook/How%20to%20properly%20login%20virtual%20user%20to%20the%20Sitecore%20client.aspx" rel="nofollow noreferrer">here</a> that shows you how to create a virtual user:</p> <p>And <a href="http://sdn.sitecore.net/Scrapbook/Custom%20HttpHandler%20problem.aspx" rel="nofollow noreferrer">here</a> on pipelines:</p> <p>Hope this helps :-)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload