Redirection for eg ?page_id=104 not working

#44377
  • Resolved Alain
    Rank Math business

    I’m trying to set up a redirection for /?page_id=104 url. The system cannot redirect them to e.g. /blog.

    All other redirections with “normal” urls are fine. Can you help me?

    BR
    Alain

    • This topic was modified 4 years ago by Alain.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Alain
    Rank Math business

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Alain
    Rank Math business

    Hello

    Doesn’t work. The area of 404 monitor recognizes only the main domain (https://www.tanner.one). It is not possible to set up a redirection from:

    From: /?page_id=104
    To: https://www.tanner.one/blog

    BR
    Alain

    Todd
    Rank Math free

    Hi Alain,

    Thanks for getting in touch with me.

    By default, Rank Math ignores query strings and passes them to the target URL. Without getting into details too much on why we do that, you can use this filter in your theme’s functions.php file to override that.

    https://rankmath.com/kb/filters-hooks-api-developer/#redirect-remove-query

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

    Cliff Kirby
    Rank Math free

    Hey Todd
    I’m having the same issue – none of my old pages that were referred to by ?page_id=xxxx are redirecting – even after putting the filter into the functions.php.

    I also note that Alain’s isn’t working still either, as I just tried his link.

    In a word – HELP?!

    Cheers
    Cliff.

    Hello,

    Thank you for the reply.

    We might need to take a closer look at the settings. Please create a new ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Alain
    Rank Math business

    Hi Michael

    Thank you so much. I don’t need support for this anymore. I only have one case in google and it is irrelevant for me. Cliff seems to have multiple issues. Please address the problem with him so he can be helped faster.

    You can also easily recreate this in your own development environment. Just take a URL with “/?page_id=XY” (XY=number). The page does not exist then. Check it in 404 Monitor and try to create a redirection.

    Thanks and best regards
    Alain

    Todd
    Rank Math free

    Hi Alain,

    We are taking a closer look at this issue.

    We will get back to you with a solution.

    It seems the option isn’t working as intended.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.