Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 363 posts 917 karma points
    Dec 09, 2013 @ 17:46
    Craig O'Mahony
    0

    Redirect not working

    Hi I've just installed the 2.3.1 version of this package into 4.9.1 Umbraco installation and I can't get the redirect to work. 

    What I would expect is that if someone went to the bespoke.aspx URL that they would be redirected tothe bbc sport page. But the bespoke page just displays as normal.

    Any ideas folks?

    Thanks,

    Craig

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 10, 2013 @ 10:38
    Stefan Kip
    0

    The Url Tracker only acts when the request results in a 404 Not Found status.
    So if the URL exists, it'll just render.

  • Craig O'Mahony 363 posts 917 karma points
    Dec 10, 2013 @ 12:51
    Craig O'Mahony
    0

    Hi Kipusoep,

    Thanks for that I sorta worked it (should have delete the forum post!). I wonder if you could help with something else though....

    What I'm trying to acheive is create a redirect so that if someone types in /course/familylaw/ (familylaw could be any one of a number of terms) then they are redirected to the course.aspx page and I want to keep the URL that they typed intact (on the course page I need to extract the term that they entered (familylaw) and use this term for database querys.

    I can set up a regex redirect (^course\.aspx\[a-zA-Z]/) with allows them to enter a term and it will redirect to the course.aspx page but it doesn't 'keep' the URL that they entered. Is it possible to do so do you know?

    Thanks again,

    Craig

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 10, 2013 @ 13:32
    Stefan Kip
    100

    Then you'll have to use IIS URL Rewrite or the built-in UrlRewriting.Net

  • Craig O'Mahony 363 posts 917 karma points
    Dec 11, 2013 @ 11:48
    Craig O'Mahony
    0

    Cheers sorted it using the URLRewriting mod. 

    Thanks for your help :)

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 11, 2013 @ 14:27
    Stefan Kip
    0

    I've added this as a feature in the just released v2.4.0:

    [Feature] Added the option to force a redirect (will allways perform a redirect, even if a page at the specified old URL exists)

  • 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