Change limit to the number of redirections in Rank Math

#1734
  • Resolved Greg Cargopoulos
    Rank Math free

    Rankmath currently has a limit of 300 redirections for each redirect type. I need it to be higher than this for 410 redirects. It needs to be 2,000. When I spoke to plugin dev team previously they said there is a new update, and they gave me the following instructions to change the limit:

    Update the plugin first, then visit: https://rankmath.com/kb/filters-hooks-api-developer/#process-redirections

    Add this to your theme’s functions.php file and you should be good to go.

    Simply replace $number with the numeric number for the redirections.

    I added the following code to my functions.php file, but now when I update the 410 redirection, it saves a new 301 redirection :
    /**
    * Allow developers to change number of redirections to process at once.
    *
    * @param int $number
    */
    add_filter( ‘rank_math/redirections/pastedContent’, function( $number ) {
    $number=2000;
    return $number;
    });

    Kindly request to show us what the bug is here.

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Your code looks okay, would you mind sharing some temporary wp-admin and FTP access to your site on the sensitive data section so that we can investigate this issue further?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi Micheal,

    I have provided the login access for the wp-admin.

    Kindly check and let me know what the issue is here.

    Thanks!

    Hi Micheal,

    Any update?

    Hello,

    The filter code above is working on your site, it enables adding 2000 source URLs in the Redirection.

    Do you want to create a redirections rule with 2000 Source URLs by copy-pasting the content in the Source URL field or is it something else you are trying to do?

    Looking forward to helping you. Thank you.

    Hi,

    We tried adding another load of 410 redirects to the existing list, and instead of expanding the list, it creates another list of 301 redirects. Kindly check.

    Thanks

    Hello,

    Thank you for contacting Rank Math today.

    I have just tried to save a 410 redirect on your site and it saves correctly. Would you mind walking me through some clear steps on how you are reproducing the error on the redirections page so that I can try the same?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi,

    Could you please show me the steps of how to do a bulk upload of 2000 urls on the plugin for 410 redirection? I deleted the existing list.

    Hi,

    So I have made a video:https://soapbox.wistia.com/videos/Wdp5WD2EcM of the error I am facing. On the backend you can check in the redirections list I have created a test 410 redirection using the numbers to count the redirections that are being uploaded. As you can see, after a certain number of bulk redirect uploads, it just creates a new list of 301 redirects with the same urls.

    What we want to do: Create ONE list of 410 redirects with a bulk upload of maximum 2000 urls.

    Please request your assistance ASAP.

    Thanks.

    Hi any update on the above???

    Hello,

    We are sorry for the issue. We have been able to replicate this and our developement team has been made aware of this issue.

    We are working on the fix and will release an update as soon as possible.

    We appreciate your patience in this matter.

    Thank you.

    Hi Pratik,

    Any idea how long the update will take to release?

    Todd
    Rank Math free

    Hi Greg,

    It will be done within a week.

    We would really appreciate your patience in this matter.

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

The ticket ‘Change limit to the number of redirections in Rank Math’ is closed to new replies.