Copied to clipboard

Flag this post as spam?

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


  • John French 32 posts 83 karma points
    Jun 24, 2015 @ 12:45
    John French
    0

    Redirect with changing url

    Hi,

    I have a structure like this

    website

    home

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 24, 2015 @ 12:51
    Dave Woestenborghs
    100
  • Rik Helsen 670 posts 873 karma points
    Jun 24, 2015 @ 13:39
    Rik Helsen
    0

    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!

  • Mark Bowser 273 posts 860 karma points c-trib
    Jun 24, 2015 @ 23:05
    Mark Bowser
    0

    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
    
  • 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