Script to redirect URL if it contains feedburner

14 Views Asked by At

I am using Wordpress, I would like to accomplish the redirection but I don't know how.

For example this URL: myblog.com/sample-post/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed&m=1

I would like my site if it detects the word "?utm_source=feedburner" go ahead and replace any string after the feedburner to nothing, so that the redirection occurs to just myblog.com/sample-post

0

There are 0 best solutions below