Redirect of ?page_id=xxxx not working

  • Resolved Cliff Kirby

    FAO Micheal Davis
    As requested – you can login to see the issue for yourself.

    I used to have a page at:
    Which was my work availability calendar.
    It now resides at:

    As per the advice from the other support ticket, I’m using a plugin called ‘MyCustomFunctions’ to add the following code to the functions.php file, just for ease.

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

    There are other redirects that I need to enable too – but the calendar page is the main one.
    I can get an OVERALL redirect working if I change the Fallback Behaviour to “Redirect to Homepage” – but obviously that’s not what I need.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Cliff,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    We are taking a closer look.

    We will get back to you with a solution.

    Hi Guys
    Any update on this error?


    Hi Cliff,

    Your URL contains a query string ?page_id=xxxx

    The part I am talking about is everything after ?.

    We are sorry but Rank Math doesn’t have an option to redirect URLs with query strings.

    You may have to use any other plugin to redirect URLs like that.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.


    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Redirect of ?page_id=xxxx not working’ is closed to new replies.