Title: Query string brake redirection
Last modified: August 31, 2016

---

# Query string brake redirection

 *  [bonddlegion](https://wordpress.org/support/users/bonddlegion/)
 * (@bonddlegion)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/query-string-brake-redirection/)
 * Hi.
    I found one problem – if some side script add query string to url, redirection
   is stop working. So if I make redirect from /tour.html to /tour/begin/, it do
   not want redirect on url site_name.com/tour.html?_ga=123798719827 Quick fix is
   remove query string before making decision on where redirect our user.
 * It can be done by changing from
    `$requested_path = esc_url_raw( $_SERVER['REQUEST_URI']);`
   to `$requested_path = esc_url_raw( strtok($_SERVER['REQUEST_URI'],'?') );` on
   line 804
 * [https://wordpress.org/plugins/safe-redirect-manager/](https://wordpress.org/plugins/safe-redirect-manager/)

The topic ‘Query string brake redirection’ is closed to new replies.

 * ![](https://ps.w.org/safe-redirect-manager/assets/icon.svg?rev=2791413)
 * [Safe Redirect Manager](https://wordpress.org/plugins/safe-redirect-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/safe-redirect-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-redirect-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-redirect-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-redirect-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bonddlegion](https://wordpress.org/support/users/bonddlegion/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/query-string-brake-redirection/)
 * Status: not resolved