• Resolved frf777

    (@frf777)


    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 3 years, 3 months ago by frf777.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Godley

    (@johnny5)

    I’m not sure exactly what you mean, bypass in PHP? How are you using those filters?

    Thread Starter frf777

    (@frf777)

    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

    (@johnny5)

    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

    (@frf777)

    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

    (@johnny5)

    If you are using wp_redirect to perform a redirect then Redirection is not involved.

    Thread Starter frf777

    (@frf777)

    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.