Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Godley

    (@johnny5)

    You can use a regular expression for this:

    https://redirection.me/support/redirect-regular-expressions/

    Thread Starter bibberle

    (@bibberle)

    Been trying for hours now ??

    Could you please give me a hint or a quick example?

    Thank you so much in advance!

    Plugin Author John Godley

    (@johnny5)

    Can you explain what you have been trying?

    Thread Starter bibberle

    (@bibberle)

    Sure. I’ve been trying “/&test=(.*)” as source an “&utm_source=email&utm_medium=hubspot&utm_campaign=persoenlicher_Link&test=$1” as destination.

    I thought this would keep the complete source link (including the parameters, since I’ve set the dropdown to keep these) and simply append the utm parameters at the end of the link. But unfortunally, it doesn’t work ??

    Plugin Author John Godley

    (@johnny5)

    /&test=(.*) doesn’t seem like it matches your URLs. It would, instead, match /&test=1234

    You can use https://regex101.com to test regular expressions. There are references to guides in the support page I posted above, and there is a lot of information on the internet about them.

    Thread Starter bibberle

    (@bibberle)

    Source: /.*&test=.*
    Target: $1&utm_source=email&utm_medium=hubspot&utm_campaign=persoenlicher_Link

    Did the trick for me!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect rule for query Parameters’ is closed to new replies.