301 redirect problem

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting us and bringing your concern to our attention.

    You can try to add an Exact redirection from /?p=5189 to your homepage like the following one:

    Source: ?p=5189
    Redirection Type: Exact
    Destination URL: /

    If that doesn’t work, please try to add the following filter on your website to remove the query parameter from redirection:

    add_filter( 'rank_math/redirection/add_query_string', '__return_false' );

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Where can I get query parameter

    not working


    If the redirect above is not working, then we might need to take a closer look at the settings.

    Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    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:


    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):


    We really look forward to helping you.


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

The ticket ‘301 redirect problem’ is closed to new replies.