Redirect of ?page_id=xxxx not working

#47363
  • Resolved Cliff Kirby
    Rank Math free

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

    I used to have a page at:
    https://whitenoisetouring.com/?page_id=3209
    Which was my work availability calendar.
    It now resides at:
    https://whitenoisetouring.com/index.php/calendar

    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.
    Cliff.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Todd
    Rank Math free

    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?

    Cliff.

    Todd
    Rank Math free

    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.

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

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