redirection issue after removing base in woocommerce

#18866
  • Resolved Arien
    Rank Math free

    Hello,

    I have removed base in woocommerce. Some weeks ago I already stripped the product-category successfully.

    All products have now the correct url.

    However all products in one specific product-category “gemalen koffie” (see sensitive area) give a 404 error.

    Strange thing is that you can add the products to the shopping cart, but clicking on “info kort” or “alle info” leads to a 404 error.

    With 404 debugger active it displays it is redirecting to same origin as destination.

    Have checked all my 301 redirects but cannot find the cause for this.

    Hope you can find the cause of this problem.

    Thanks in advance.
    Arien

    • This topic was modified 4 years, 5 months ago by Arien.
    • This topic was modified 4 years, 5 months ago by Arien.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Arien
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

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

    I have raised this problem with our dev team for closer investigation and we will be getting back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    The redirection you see is the default redirection that Rank Math generates to redirect the old product page link to the new link without a base. Now the issue is, in permalink you’ve set product base to /koffie/%product_cat%/ and your category slug is gemalen-koffie. To redirect we are using like query, so the plugin is seeing gemalen-koffie as product base and it’s is redirecting the page to new link without slug and without the product category.

    It’s a bug and I’ve forwarded this to our Development team. For now, to fix the issue on your site please set product permalink to /product/%product_cat%/ or anything else which is not similar to the product category. If you don’t want to change the permalink then please comment or remove line 67 ( new Product_Redirection; code ) from plugins/seo-by-rank-math/includes/modules/woocommerce/class-wocommerce.php

    This should fix the issue.

    If there is anything else, please let us know. Thank you.

    Arien
    Rank Math free

    Thank you very much for fast follow-up. I have deleted the line with code and all looks okay now.

    Assume that with the next update all will be repaired.

    regards, Arien

    Hello,

    We are super happy that this resolved your issue. 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/?rate=5#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 5 replies - 1 through 5 (of 5 total)

The ticket ‘redirection issue after removing base in woocommerce’ is closed to new replies.