it will show the homepage. However I don't want to redirect them - I know I can add this in the urlrewrite.config so that when people go to http://mydomain.com/ the browser redirects to http://mydomain.com/home - but how can I get it so that the url stays the same i,e http://mydomain.com/ but the home node is displayed?
You can use the core function "umbracoInternalRedirectId" with a contentpicker?
Add the umbracoInternalRedirectId property alias to your document type with a content picker and Umbraco will load the selected page’s content transparently; no url redirection
nor sure how this'll work for your navigation & other pages though!
You could try playing with the Culture and Hostnames. I did a quick test, and it seemed like it did what you are looking for. I tested it on a site like this:
Home
Test Category Page
Test Child Page
Some Landing Page
I right clicked on the Test Category Page and added a domain like http://mytestsite.com/ as a domain.
When I did that, this is what pages the nodes in my tree linked to:
Node in tree Url Node Displayed
----------------------------------------------------------
Home / Test Category Page
Test Category Page / Test Category Page
Test Child Page /test-child-page Test Child Page
Some Landing Page /some-landing-page 404
Redirect with changing url
Hi,
I have a structure like this
website
therefore the website node has the url / and the home node has the url /home
However I want it so that when people goto
http://mydomain.com/
it will show the homepage. However I don't want to redirect them - I know I can add this in the urlrewrite.config so that when people go to http://mydomain.com/ the browser redirects to http://mydomain.com/home - but how can I get it so that the url stays the same i,e http://mydomain.com/ but the home node is displayed?
Thanks
Hi James,
Jeroen Breuer does something similar in his Hybrid framework using a IUrlProvider.
https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/UrlProvider/HomeUrlProvider.cs
After you have that in place you will need to register it at startup : https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Best-Practises/blob/master/Umbraco.Extensions/Events/UmbracoEvents.cs
Dave
You can use the core function "umbracoInternalRedirectId" with a contentpicker?
nor sure how this'll work for your navigation & other pages though!
You could try playing with the Culture and Hostnames. I did a quick test, and it seemed like it did what you are looking for. I tested it on a site like this:
I right clicked on the
Test Category Page
and added a domain likehttp://mytestsite.com/
as a domain.When I did that, this is what pages the nodes in my tree linked to:
is working on a reply...