Copied to clipboard

Flag this post as spam?

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


  • Jesse Andrews 155 posts 607 karma points
    Jan 20, 2020 @ 21:04
    Jesse Andrews
    0

    Redirect not going to correct domain

    Umbraco: 8.2.2

    SEO Checker: 2.8.2

    I'm running into an issue where a redirect doesn't end up on the correct domain when redirecting to a node. Take the following example.

    There are two sites example1.com and example2.com managed through the same umbraco installation, each with their own root node. Both have a child page at /test/. When I redirect /not-test/ to the Test node under example2.com, example2.com/not-test/ redirects to example2.com/test/ as expected. The problem is that example1.com/not-test/ redirects to example1.com/test/ and not example2.com/test/.

    It is possible to get around this by redirecting to an absolute url instead of a node, though this isn't ideal.

  • Richard Soeteman 3754 posts 11621 karma points MVP
    Jan 21, 2020 @ 07:43
    Richard Soeteman
    0

    Hi Jesse,

    In the general settings you can enable the following (coming from the manual )

    Store domain for not found url’s. When enabled the domain will be stored in the not found information. This allows you to specify multiple targets for a url coming from different domains such as www.soetemansoftware.nl/productsand support.soetemansoftware.nl/products

    Then it will work for you scenario.

    Hope this helps,

    Richard

  • Jesse Andrews 155 posts 607 karma points
    Jan 21, 2020 @ 16:52
    Jesse Andrews
    0

    That's not what I'm trying to do. I want to redirect a relative path across all domains to a single page on one of those domains. I can get this to work when I manually enter the absolute url for the target page

    redirects all domains to same page

    but it doesn't work as expected when I redirect to a specific node.

    redirects don't all go to the selected node

    It goes to the correct path, but doesn't factor in the domain of the selected node. In the example in the screenshots, the redirect should go to https://be.ctg.com/solutions/testing/ for all domains, but when I redirect by node https://www.ctg.com/stbox/ goes to https://www.ctg.com/solutions/testing/, even though the selected node has the domain be.ctg.com.

  • Richard Soeteman 3754 posts 11621 karma points MVP
    Jan 22, 2020 @ 07:49
    Richard Soeteman
    0

    Ah ok,

    Indeed then you need to create a absolute url to redirect. On request level there is no info about the domains. And people assign bogus domains as well and that will cause a lot of other issues.

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft