WP Redirections Plugin utm redirect

MartonB

Regular Member
Joined
Aug 20, 2019
Messages
285
Reaction score
70
I'm trying to redirect a UTM link to the original post URL using the redirection plugin

URL is as

/blog/categort/Post-Titlle/?utm_source=test
I want it to apply this rule for all posts:
/blog/categort/Post-Titlle/

please any idea how to make this work
 
Just choose I think the last rule pass through or whatever it's called. It will pass through all parameters to the new url
 
Did you have 2 times source?
/example-here/ ?utm_source=test &utm_medium=email& utm_source=hubspot &utm_content=blog
 
Did you have 2 times source?
/example-here/ ?utm_source=test &utm_medium=email& utm_source=hubspot &utm_content=blog

No this is just an example,

I want whatever after the last /= will redirect to the original url

Just choose I think the last rule pass through or whatever it's called. It will pass through all parameters to the new url
I'm not sure it worked, do you have parameter settings?
 
/blog/categort/$1
thank, you

I edit it and it worked
/blog /categort /(.*)/?utm_source=(.*)
/blog /categort /$1

However now after it redirects

It always leaves a ? after the slash

like this /?

I did try to remove the? but it didn't work, any idea?
 
Back
Top