Copied to clipboard

Flag this post as spam?

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


  • lachlan 3 posts 73 karma points
    Oct 02, 2017 @ 03:32
    lachlan
    0

    Redirect to international page

    I am currently running two sites (Australia and New Zealand) with very similar content. There is a number of categories on the Australian site which do not exist on the NZ site, however to create the facade they do, i would like to link them back to the Australian site. I have tried to link document and also insert the href in the source, however it returns with a 404 error.

    What is the simplest way to fix this, so it redirects to the Australian site?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Oct 02, 2017 @ 12:58
    Alex Skrypnyk
    0

    Hi lachlan

    Do you know about reserved Umbraco properties for redirect?

    Read more - https://cultiv.nl/blog/umbraco-tip-of-the-week-redirects/

    Is it what you need?

    Thanks,

    Alex

  • lachlan 3 posts 73 karma points
    Oct 03, 2017 @ 03:00
    lachlan
    0

    Thanks Alex.

    The website has been setup using accordion items to link back to the main site, however when i go to alter the url, it returns the 404.

    Even in one particular case which has an incorrect url format /https:// it's still returned as a 404 when altered.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Oct 04, 2017 @ 10:20
    Alex Skrypnyk
    0

    Hi Iachlan

    Can you show how links were made?

    How does it look?

    The code?

    Thanks,

    Alex

  • lachlan 3 posts 73 karma points
    Oct 05, 2017 @ 01:06
    lachlan
    0

    Hi Alex, Sorry for the bombard ment of code, but here is the RTE source code within accordian and template code.

    <p style="text-align: center;"><a data-id="1947" href="/our-business/health-professionals/nursing-agency-casual-contract-nurses/" title="Nursing Agency - Casual &amp; Contract Nurses">NURSING AGENCY</a></p>
    

    PERMANENT HEALTH CARE

    COMMUNITY CARE

    DISABILITY SUPPORT

    AGED CARE

    NURSING EDUCATION

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    

    @using System.Web.Mvc.Html @using Umbraco.Web @using Umbraco.Core.Models @{ Layout = "Master.cshtml"; var caseStudyPage = Umbraco.Content(1796); var auNode = Umbraco.Content(1644); var nzNode = Umbraco.Content(3397); }

    @{ Html.RenderPartial("DynamicElementMain"); }

    @{ Html.RenderPartial("Breadcrumb"); }

    @Umbraco.Field("title")
    @Umbraco.Field("text")

    @if (Model.Content.Id == 1644 || Model.Content.Id == 3397){

  • 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