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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:44:29+00:00 2026-05-18T06:44:29+00:00

I host two sites in a single sitecore environment. I’ve modified web.config so that

  • 0

I host two sites in a single sitecore environment.
I’ve modified web.config so that

<site hostName="subdomain1.domain.com" startItem="/home" ... />
<site hostName="subdomain2.domain.com" startItem="/SecondSite/Homepage" ... />

The problem is that menu links I generate in xslt rendering using sc:path(.) are too long.

http://subdomain2.domain.nl/sitecore/content/SecondSite/CaptivatingPage.aspx

I want the links look like

http://subdomain2.domain.nl/CaptivatingPage.aspx

Please, give me a hint.

  • 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-18T06:44:30+00:00Added an answer on May 18, 2026 at 6:44 am

    The true root of the site is SiteRoot + StartItem, thus in your case it is /sitecore/content/SecondSIte/Homepage. The page you generate a link to in your XSL rendering is not under the root of the site – it is the same level as the Homepage.

    sc:path(.) should give you a friendly link, and for each page under the Homepage it will be http://subdomain2.domain.nl/EachPage.aspx, but for the items outside the root it will concatenate it with the full path: /sitecore/content/blabla...

    So, try to move CaptivatingPage under the Homepage, and you’ll get what you expect.

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

Sidebar

Related Questions

HELP! I just setup a virtual host for two sites that have a lot
I just moved my drupal site to another domain/host I moved the DB and
I'm trying to maintain a web site spread across two domains with the same
I have two application for my project site.com api.site.com And here's my config $config['base_url']
I'd like my site to be accessible by the following two urls only: http://domain.com
i have two columns in my sharepoint list [Cluster Name] and [Host Name] I
Is it possible to host in the same appDomain two different projects of WCF
We are setting up two server systems. One of which will host a 3rd
my host (one.com) doesn´t support java webapps. But I have a java programm that
We host online reports that a client will log into and view. The reports

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.