-
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.
The ticket ‘Change limit to the number of redirections in Rank Math’ is closed to new replies.