Copied to clipboard

Flag this post as spam?

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


  • Nathan Hastings 4 posts 85 karma points
    Dec 12, 2019 @ 20:13
    Nathan Hastings
    0

    Umbraco 8 Multiple domains

    Are multiple domains (multiple root nodes) still supported in Umbraco 8?

    We have tried adding support for this in the same way we did in Umbraco 7 using in the umbracoSettings.config file but this seems to no longer be supported:

    Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.Configuration.ConfigurationErrorsException: Unrecognized element 'useDomainPrefixes'.

    The docs for this haven't been updated for this yet - https://our.umbraco.com/documentation/reference/config/umbracosettings/

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Dec 13, 2019 @ 07:10
    Marc Goodson
    102

    Hi Nathan

    This is a bit of guesswork but it looks like there is now a UrlProviderMode option in the webrouting part of the umbracosettings.config file.

    https://github.com/umbraco/Umbraco-CMS/blob/853087a75044b814df458457dc9a1f778cc89749/src/Umbraco.Core/Configuration/UmbracoSettings/WebRoutingElement.cs

    And this I think, takes a value that is an enum called UrlMode.

    https://github.com/umbraco/Umbraco-CMS/blob/3bfd9b71e290354744d677440983ecd06c5c0788/src/Umbraco.Core/Models/PublishedContent/UrlMode.cs

    and one of the options for the enum appears to be:

    UrlMode.Absolute

    That I think might be the V8 equivalent of useDomainPrefixes...

    or at least is worth a try!

    regards

    Marc

  • Nathan Hastings 4 posts 85 karma points
    Dec 13, 2019 @ 09:55
    Nathan Hastings
    1

    Thanks Marc, this was exactly what I needed.

    I added urlProviderMode="absolute" attribute to the web.routing node in umbracoSettings.config and was able to add a new root node that I could then assign a domain name to.

  • 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