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'.
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.
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:
The docs for this haven't been updated for this yet - https://our.umbraco.com/documentation/reference/config/umbracosettings/
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
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.
is working on a reply...