Redirect where both source and destination have a query string

#515246
Viewing 1 replies (of 1 total)
  • Nigel
    Rank Math business

    Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    This is the default behavior of our redirection module. It passes all the query strings to the redirected URL. You can use the below filter to disable appending query parameters to your redirected URLs.

    
    /**
     * Disable appending the query string in the redirection URL.
     *
     * @param int $number
     */
    add_filter( 'rank_math/redirection/add_query_string', '__return_false' );
    

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope this helps. Let us know if you need any other assistance.

    Thank You

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirect where both source and destination have a query string’ is closed to new replies.