Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nandoh 32 posts 104 karma points
    Mar 03, 2017 @ 17:55
    Nandoh
    0

    How it decides which Site to return when domains are like 'http://mysite.com/foo' and entering URL is 'http://mysite.com/'

    Hi guys,

    first of all...I love Umbraco and I think that this is a great community :D

    I think that I had seen some post related to my question, but I can't find it...

    So, pointing to my question.... I've an Umbraco installation with 2 Sites and I set up the domains like this:

    when entering the http://mysite.com/ in the web browser, Umbraco returns the content of the site (Site 1).

    So I'm questioning what's the flow that Umbraco follows? (like, since none of the domains are exactly "htttp://mysite.com" Umbraco returns the first Site?)

    And what I also would like to know is what are your suggestions/best practices to guarantee that if someone access http://mysite.com Umbraco 'redirects' for one of sites (http://mysite.com/foo or http://mysite.com/bar) according to the Culture detected in the Request. This Umbraco installation is hosted online, so I can't control the IIS server.

    Note: please notice that I put redirects between quotation marks, because maybe exists some approach that avoid a real "301 Permanent Redirect".

    Thanks in advance. Regards

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Sep 29, 2017 @ 14:23
    Alex Skrypnyk
    0

    Hi Nandoh

    When you hit URL, Umbraco shows the first node in the tree if the domain is bound to the application.

    Site 1 -> http://mysite.com/foo - culture EN is the first node in the tree, that's why it shows.

    If you want to change this logic - use "umbracoInternalRedirectId" or similar redirect functionality for redirecting.

    Thanks,

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies