Strip Category Base Problem

#769125
  • Resolved Caglar
    Rank Math free

    Hello,

    I am activating the “Strip Category Base” option in your plugin to hide the category url base on my website.

    After activating this, the /category/ url in all categories disappears without any problem.

    but my problem is as follows:

    I am also using translatepress translation plugin on my website.

    When I translate any category url address to a different language with translatepress, this category page does not open on other pages other than the main language. 404 error appears.

    For example:

    sitename.com/cars/ – works fine.

    sitename.com/tr/arabalar/ does not work.

    When I turn off the “Strip Category Base” feature, the status urls appear as follows as standard and they work fine:

    sitename.com/category/cars/ – works fine.

    sitename.com/tr/category/arabalar/ works fine.

    how can i fix this problem?

    i also want to point out that this problem only occurs in category fields. it is not present in pages and posts. i have done many different experiments.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, we apologize for the issue you are facing with translated category URLs and the “Strip Category Base” feature causing a 404 error.

    To resolve this issue, you can follow these steps:

    1. Disable the “Strip Category Base” feature in Rank Math by navigating to Rank Math SEO → General Settings → Links and ensure that the option is turned off.

    2. Check if the translated category URLs work correctly without the “Strip Category Base” feature enabled. If they work fine, then the issue is related to the interaction between TranslatePress and Rank Math’s “Strip Category Base” feature.

    3. If disabling the feature resolves the issue but you still want to use the “Strip Category Base” feature, you may need to reach out to the support teams of both TranslatePress and Rank Math for further assistance in resolving the compatibility issue.

    If you need more help or have any other questions, please feel free to reply here. Thank you for bringing this concern to our attention.

    Sources:
    How to Remove the Category Base From WordPress » Rank Math
    How to Optimize a Category Page » Rank Math
    WordPress Permalink Structure & Changing Individual URLs » Rank Math
    Rank Math General Settings
    How to Find Out Where 404 Errors Are Coming From » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that this issue might have caused.

    Please note that when you enable the Strip Category Base option in Rank Math → General Settings and translate the taxonomy slug, the translated archive page displays a 404 error.

    As a workaround do not translate the category, product, or product-category slugs. The untranslated terms won’t be visible in the URL anyway when you use any of those options.

    Let us know how this goes. Also, let us know if you have further questions or concerns.

    Thank you.

    Caglar
    Rank Math free

    Hi,

    please check the picture.

    is completely empty, i.e. no translation has been done.

    https://imgur.com/a/leJTD2Q

    Hello,

    Upon further tests from our side, it seems that this indeed is correct and our compatibility with the TranslastePress plugin will only go as far as including the correct pages in the sitemap, and the features to remove product or category base won’t work properly.

    We’ll take note of this internally and if the opportunity arises in the future we’ll work to build on that compatibility and if we require any assistance from the team over at TranslatePress we’ll make sure to get in touch with them.

    Since TranslatePress doesn’t support removing the category base, we don’t have any option in our plugin to force the translation plugin to use the short permalinks. In this case, you will have to keep the Remove Category Base option disabled to make the categories work in the secondary language.

    Don’t hesitate to get in touch if you need any other assistance.

    In the meantime, if you have any other questions don’t hesitate to get in touch.

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

The ticket ‘Strip Category Base Problem’ is closed to new replies.