Primary category is not picked up in URL and taking 2nd/3rd category

#938600
  • We have installed RankMath a couple of month back and deactivated Yoast SEO plugin which was in use for last 5 years. We deleted the Yoast plugin last week and recetly we are facing a weired issue with the URLs of the site.

    Our Permalink structure is /%category%/%postname%/

    We select multiple category and “sob” is default category and selected in 90% of the posts. Apart from that we have categories like Science, History, religion, literature, geography etc.

    Some posts category falls to sob and science, some are sob and history, some are sob, geography and travel. Like that… In all above cases URL looks like https://sobbanglay.com/sob/article-name

    This was working fine. But now all old urls are chaged to any random other category – like https://sobbanglay.com/history/article-name

    I tried all the AI suggested methods but no luck. Please help urgently as it is severely impacting our search console data.

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

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

    The issue will be fixed in the next update. For now, please replace the code on line 251 of the wp-content/plugins/seo-by-rank-math/includes/class-common.php with the following code to fix the issue:

    if ( empty( $terms ) || ! in_array( absint( $primary ), $terms, true ) ) {
    

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

    I have made the changes. But still the issue exists. Is this something introduced with recent release? Can I role back?
    Or when are you planning for the next release?

    Hello,

    We currently don’t have an ETA for the next release with this fix.

    If applying the line of code we shared doesn’t work, 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:

    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.

    We have security concerns on sharing these information. DOn’t you have any prior release where the issue is not happening? We can go back to that release.

    If the plugin is creating such issue for all it’s past release and you do not have any upcoming planned release then we would rather go back to our old Yoast SEO plugin. At least the site will not behave abnormally with that plugin.

    Hello,

    We deeply apologize for the inconvenience. We have already fixed the issue in the latest version of the Rank Math plugins: https://rankmath.com/changelog/free/

    If you’re not able to see the update, please clear Rank Math’s transients from WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients: https://rankmath.com/kb/rank-math-status-and-tools/#rank-math-transients

    After updating the plugin to the latest version, please try to clear your website cache including any server-level cache, and check again.

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

    Thank you.

    Thanks for the new release. Do I have to revert the changes you had asked earlier or the file will be replaced if I update the plugin?

    Hello,

    The file will be automatically replaced after updating the plugin so you don’t have to change that again.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

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

The ticket ‘Primary category is not picked up in URL and taking 2nd/3rd category’ is closed to new replies.