No Compatibility with Single Category Permalink

#13659
  • Resolved Pankaj Rawat
    Rank Math free

    Apparently the Plugin is not compatible with “Single Category Permalink” plugin.

    The plugin is very important for me as it removes the parent categories to make the URL smaller.
    For example: If I have a post link as domain.com/category/sub-category/sub-sub-category/link-of-post then this plugin will strip it down to domain.com/sub-sub-category/link-of-post

    However, with RankMath the category archive page domain.com/sub-sub-category is redirecting to homepage. Also, sometimes few category archive pages are opening fine. It’s really weird as it only happening to sub-categories. Please give me a fix.

    • This topic was modified 4 years, 7 months ago by Pankaj Rawat.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

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

    Rank Math contains a similar feature which would cause some broken links if enabled. Could you please head over to Rank Math > General Settings > Links and ensure that the “Strip Category Base” option is disabled.
    Next, head over to Rank Math > General Settings > WooCommerce and ensure that the following options are disabled as well:
    IMG

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thank you for your guide.
    However, I want to keep the “Strip Category Base” enabled.

    Is there anything that you can do about it?
    If I change the slug of the category page, it’s working fine.

    For example: mydomain.com/books changed to mydomain.com/book working fine. So I am really confused.
    My SERP are great on Google so I cannot do any changes to permalinks. Please help team

    No help? Anyone

    Hello,

    Apologies for the delay.

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

    Hello,

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

    Thank you.

    Hi Pankaj,

    Thanks for the access.

    When the strip category base option is enabled on your site it is causing conflicting permalinks. For example, you have a category called books and there is also another post representing an image in your database that is called books.
    Since the option to redirect attachments to the post that they appear in is enabled, the books category is getting redirected to the homepage since that is the section that the /books image is assigned.
    I have disabled the option to redirect attachments to the homepage via Rank Math > General Settings > Links so that you can experience the difference.

    To fix this, I would suggest that you rename those posts in your database that share the same name as you categories.

    I hope this info helps. Thank you.

    Thank you, the problem is solved for now

    1. I turned on Redirect Attachments

    2. I reuploaded the same images after renaming them and deleted the older images. Now the page is working fine. Please check

    However, the question is that if I upload the same image name as the category name in the future, it will conflict the redirect thing, right?

    Hello,

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

    Thank you.

    Hi Pankaj,

    Thanks for the follow up.

    I am glad that this is now resolved, you should avoid creating posts or uploading images with the same name as your categories in future.

    I hope this info helps. Thank you.

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

The ticket ‘No Compatibility with Single Category Permalink’ is closed to new replies.