Copied to clipboard

Flag this post as spam?

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


  • Joseph 34 posts 168 karma points
    Mar 28, 2019 @ 14:32
    Joseph
    0

    Regex rules and SEO Checker

    I have recently demoed a local installation of your package to our development team. They had a couple of queries which I hope you can assist with...

    We wanted to inquire as to whether we would be able to utilise regex in the setup of redirect rules from within the package at all?

    Example 1:

    I want a single redirect rule for all languages:

    /xx-xx/about-us/. *

    to

    /xx-xx/about/.*

    ...as opposed to having to enter one for each language variant

    Example 2:

    The other example would be section based - so if someone changes the url segment of a root page - e.g about-us to about and we need to redirect anything starting with /about-us/ to /about/

    So a single rule to redirect /about-us/anything to /about/anything

    Which you could do with an expression

    /about-us/(.*)

    to

    /about/$1

    Any assistance appreciated...

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 28, 2019 @ 14:37
    Richard Soeteman
    100

    Hi Joseph,

    Regex isn't supported and the reason is that redirtect manager is meant for normal editors and they don't understand regex. I think Example 1 is possible with Wildcard url where everyting behind the url will point ot a single page

    And you could use the import redirects functionality so you can define all urls in Excel and import them at once into Umbraco.

    Hope this helps.

    Best,

    Richard

  • Joseph 34 posts 168 karma points
    Mar 29, 2019 @ 15:27
    Joseph
    0

    Hi Richard,

    Appreciate the response. I understand where you are coming from with regards the primary users of the package.

    In recognizing that this is a more advanced / niche case, would there be any scope to potentially include as part of a post v8 targeted version? Just wondering if this is something that could possibly reside in a different area with different access rights - in a way that is locked down to more advanced / power users of the system...

    Possibly one to consider, for now I suspect you already have a bit on your plate with updating packages ;)

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Apr 01, 2019 @ 06:25
    Richard Soeteman
    0

    Hi Joseph,

    One to consider indeed, but indeed after V8 compatible release :-) Think when adding it will be op[en to all otherwise people don't see redirects and people hate black magic ;-)

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft