I'm using 7.15.1 and have multiple sites. When I want to render a site locally I edit the Culture and Hostnames of the top level site node to include "localhost/site1" then move to the next site and do the same thing with the second url.
Make sure you name the localhost url the same as your node.
Multi Sites - Umbraco 8 - Logging
Hello,
I am working with Umbraco v8 (recently I've started) and in my project I have 2 sites set up as example:
I want to log the domain or url to indicate in that site I was.
Is there any key to know that? Is configurable? Please, someone can give me some idea... how to implement that.
I'm using 7.15.1 and have multiple sites. When I want to render a site locally I edit the Culture and Hostnames of the top level site node to include "localhost/site1" then move to the next site and do the same thing with the second url.
Make sure you name the localhost url the same as your node.
In your example your site node should say 'site1'
Hi Dana, thanks for your answer, that is, configure them in the backoffice, right?
I was researching and I got "\site1", using this line "UmbracoContext.PublishedRequest.Domain.Name" in my code.
is working on a reply...