New Language

#361943
  • Resolved Dimitra Likoura
    Rank Math free

    Hello,

    I am trying to add a new language to our website with polylang.
    I have made my category on English Lan. https://e-optikon.gr/en/gucci-gg-0163s/ but i have an error
    404
    Page Not Found

    From polylang they said that “I can see in your video that the product category base is removed. WooCommerce doesn’t recommend to remove the category base as it can easily create conflicts and WooCommerce needs to perfectly manage the rewriting rules. See here => https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls

    Could you send me a screenshot of your permalinks settings?

    Have you removed the product category base in your Permalinks settings? Or is it a plugin that removes it?
    It could be Rank Math SEO that removes it, could you deactivate this plugin and test again after saving your permalinks settings again?

    so i did it and works. The problem is that all my prosucts in Greek are already in Google and i dont want to lose all of my work. Do you ghave any suggestions?

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

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

    This is a known issue with Polylang where you will not be able to use the Remove Category Base option.

    We have been trying to collaborate with them for a few years but left the conversation when they refused to add the compatibility even though they have it for several other plugins (some of them have a smaller user-base compared to RM)
    https://github.com/polylang/polylang/tree/master/integrations

    You can check their public repository where we created a pull request (linked to from your opening post) a few years back and we would have maintained it (though that would not have happened ideally since we do not make changes in the plugin that breaks the compatibility).

    Disappointingly, the compatibility needs to be added in their plugin as they added for other SEO plugins. We are more than committed to making that happen and always keep it updated, of course, if their team agreed and wanted to collaborate.

    With that said, you can check the following page for alternatives that are 100% compatible with the Rank Math SEO plugin
    https://rankmath.com/compatibility/
    https://rankmath.com/compatibility/?s=Translate&post_type=rm_compatible

    Hope that helps. Thank you.

    Hust to let you know here it the response from Polylang

    Good morning,

    I don’t really have a solution as such but I know that Yoast SEO has this feature as well and so far it seems to work well, I suppose they have coded it differently than Rank Math SEO and it fits WooCommerce’s expectations.

    Also there is a compatibility with Yoast SEO integrated to Polylang that we maintain.

    Would you consider switching to Yoast SEO?

    As i asked for a refund for polylang they send me these info:

    Actually the issue you are experiencing is not linked to Polylang but rather to what the removal of the product category base does in a multilingual WooCommerce context.
    As explained in their documentation => https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls

    What happens, from a technical perspective, when the category base is removed is that a set of rewriting rules per term must be coded. It is the only way to make it work without causing conflicts. This is what Yoast SEO and the plugin “No category base” did for WordPress base category.
    We were able to develop a compatibility for it to work in a multilingual context because they followed these “rules”.

    Now, it seems that Rank Math SEO (when removing the category base) doesn’t create the rewriting rules for the product categories terms.
    There unfortunately is nothing we can do on our side to make it work in a multilingual context unless the authors of the plugin decide to go ahead and code a set of rewriting rules for product categories terms. Then we would be able to rely on this and develop a compatibility.

    The authors of Rank Math SEO can have a look at what “Yoast” and “No category Base” did to write their set of rewriting rules.
    https://github.com/Yoast/wordpress-seo/blob/trunk/inc/class-rewrite.php#L122
    https://github.com/codeforamerica/cityhow/blob/master/wp-content/plugins/wp-no-category-base/no-category-base.php

    Can we do smth?

    Hello,

    Thank you so much for sharing this information from Polylang support. Allow me to pass this information to our developers and we should get back to you with advice.

    In the meantime, please don’t hesitate to let us know if you need our assistance with anything else.

    We appreciate your time and patience on this one.

    Thank you.

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

You must be logged in to reply to this ticket.