Copied to clipboard

Flag this post as spam?

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


  • Toni Vilar 5 posts 35 karma points
    Jan 09, 2014 @ 13:42
    Toni Vilar
    0

    Force redirect in Regex

    It is posible to use "Force redirect" option in "regex" instead of "Old Url"?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 09, 2014 @ 13:49
    Stefan Kip
    0

    AFAIK yes, habe you at least tried this?

  • Toni Vilar 5 posts 35 karma points
    Jan 09, 2014 @ 14:03
    Toni Vilar
    0

    Yes, I tried it, but for me don't work.

    My regex is ^es/something/something2/.*$  

    If I have enabled the option "Force redirect" always redirect, this case is ok. But, if the option is disabled and the url doesn't exists the redirection is not done.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 09, 2014 @ 14:04
    Stefan Kip
    100

    Then the only possibility is that the status is not 404 when the UrlTracker executes.

  • Toni Vilar 5 posts 35 karma points
    Jan 09, 2014 @ 16:42
    Toni Vilar
    0

    You are right, I was trying to redirect a url, that if not exists, the parent node return a error page without code  404. I tried with a standard url, and "force redirection" option with regex run successfully.

    Thanks

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 09, 2014 @ 16:44
    Stefan Kip
    0

    Cool! Thanks for letting me know it works. Could you mark this topic as resolved, please?

  • 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