Rank Math adds -2 to the end of the slug

#191991
  • Resolved Lucas
    Rank Math free

    Hello, technical support!

    I have a little problem. I have edited an old article, in which I only modified the description and added a tag. Those were the only two changes.

    However, when I clicked the button to update the article, automatically Rank Math added a “-2” in the slug.

    This caused the original URL to be modified:

    http://www.mywebsite.com/article
    http://www.mywebsite.com/article-2

    And in the redirects section, Rank Math made this redirect to the new URL.

    How can I modify this, or disable this option?

    I have tried going back to the old URL but it continually returns the article-2.

    Thank you very much.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us and we regret the inconvenience caused.

    Could you please double-check if you have multiple posts having /article/ in the slug? If yes, then this is a default WordPress behavior.

    If you already have a post having article as the slug and you create another post with the same slug, then the new post’s slug would be suffixed with a hyphen and a number.

    And in the redirects section, Rank Math made this redirect to the new URL.

    Could you please confirm whether this redirection was automatically created when you updated the post?

    Looking forward to hearing from you.

    Thanks.

    Lucas
    Rank Math free

    Hello, Prabhat Rai!

    The only article with this slug is the one I was editing. But as I mentioned, it automatically added the “-2” suffix to the end of the URL.

    While in the redirects section, the redirect was created, also automatically.

    This does not have much importance because it is an article with few visits, but it would be worrying if it happened with an article with authority, which would make me lose visits.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    Could you please try changing the slug of that post back to /article/ and see if you’re able to change it?

    Please let us know how that goes.

    Thank you.

    Lucas
    Rank Math free

    I have tried to modify the slug, that is, to remove the “-2” part, but the system won’t let me. I update the post and there are no changes.

    The sitemap no longer shows the old slug, but the new one does.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for the reply.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your Website’s URL & WordPress 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.

    Lucas
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    Thank you for that information.

    We wanted to further check your site, but it seems that the Admin URL you have provided is only redirecting to your homepage. The wp-admin is disabled as well.

    Could you please check?

    Looking forward to helping you.

    Thank you.

    Lucas
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    Thank you for that information.

    I’ve checked your site, and it seems that you have an attachment with the same name as that URL and the Redirect Attachments option is enabled on your site. I’ve attached a screencast in the sensitive data section.

    Please note that the redirect attachment option will automatically have the media URLs prioritized over other similar URLs. Could you please rename and reupload that image and try changing the slug of that post?

    I hope that helps.

    Thank you, and looking forward to your update.

    Lucas
    Rank Math free

    Hello, Reinelle!

    The problem has been fixed. You are a crack.

    So, do you advise to disable the Redirect Attachments option in Rank Math?

    Anas
    Rank Math business

    Hello,

    You can keep the redirect attachments option on, but make sure that the image URLs are different from what you want to use on the posts/pages.

    Please upload the image again and set a different slug for that image.

    I hope this helps. Looking forward to helping you.

    Lucas
    Rank Math free

    Thank you to Prabhat, Reinelle and Anas.

    The problem was resolved.

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Rank Math adds -2 to the end of the slug’ is closed to new replies.