Title: bypass redirection
Last modified: August 18, 2021

---

# bypass redirection

 *  Resolved [frf777](https://wordpress.org/support/users/frf777/)
 * (@frf777)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/)
 * Hello and thank you for this great plugin,
    I wanted to know if there was a way
   to bypass temporarly the plugin, I give you an example:
 * My hosting service is stripping the utm_ parameter in url and I would like to
   apply a special treatment for the urls having this parameter. I just want to 
   redirect them to the homepage.
 * I tried with the redirection_url_source filter or even the redirection_last action
   but the remaining problem is that the utm parameter is still added to the new
   url I redirect to, which cause infinite redirection loop. I tried the regex feature
   it does not work either…
    Could you give me some guidelines please? Thanks
    -  This topic was modified 4 years, 9 months ago by [frf777](https://wordpress.org/support/users/frf777/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780507)
 * I’m not sure exactly what you mean, bypass in PHP? How are you using those filters?
 *  Thread Starter [frf777](https://wordpress.org/support/users/frf777/)
 * (@frf777)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780535)
 * Hey, thanks for your reply.
    Actually, if I find the utm_ parameter in the $url
   passed in the filter, I force a wp_redirect to the homepage for example.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780589)
 * Ok, so if I understand you have a redirect, and you are using a filter to try
   and detect if a utm parameter exists. If it does, then you want to cancel the
   Redirection redirect and do your own redirect? This works, but a utm parameter
   is added. Who is adding it?
 *  Thread Starter [frf777](https://wordpress.org/support/users/frf777/)
 * (@frf777)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780624)
 * This is totally correct.
    I do not why this parameter keep on being appened even
   to the redirected url. I was hoping that you could advise me or could give me
   a trick to bypass temporarily your plugin to redirect the earliest possible. 
   What do you think?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780645)
 * If you are using wp_redirect to perform a redirect then Redirection is not involved.
 *  Thread Starter [frf777](https://wordpress.org/support/users/frf777/)
 * (@frf777)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780675)
 * Alright then, I suspect a cache issue regarding the hosting service. I’m going
   to investigate in this direction. I keep you posted.
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘bypass redirection’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)
 * [utm](https://wordpress.org/support/topic-tag/utm/)

 * 6 replies
 * 2 participants
 * Last reply from: [frf777](https://wordpress.org/support/users/frf777/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/bypass-redirection/#post-14780675)
 * Status: resolved