Permalink structure doesn’t include category slug in product URLs

#60903
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Rank Math does not add or remove the category from the product URL. The Remove category base option removes the category base from the Product category URL. To show category in Product, please change your permalink settings for Product to Shop base with category:
    change permalink settings

    Please stay advised that it is not recommended to change the permalink settings on an established site.

    I hope that helps.
    ​​​​​​

    Hi Pratik,

    Thank you for coming back to me. I have tried with the permalink structure you suggested, and it still doesn’t work. The URL for the product still shows as: mysite.com/product-name, not mysite.com/category/product-name.

    Also, when i hover over the product to see it’s like it shows as: mysite.com//product-name, like there’s a space for the category slug, but it’s no in there?

    Hello,

    Thank you for contacting Rank Math today.

    If you wish to enable product categories in your URL please make sure to turn off the option to remove base category base.

    img

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Micheal,

    Thanks for your reply, I have turned that option off, and it adds ‘product-category’ into the URL, as in those exact words. I want to get the category name showing in the product URL slug.

    With that option turned off, the products are still showing mysite.com/product-name, with no category in, and the categories themselves are showing as mysite.com/product-category/category.

    Where am I going wrong here, or is it something that RankMath just can’t do?

    I would like to end up with the URL’s being:
    http://www.lathamssteeldoors.com.au/shipping-container-doors (where shipping-container-doors is the category)
    and
    http://www.lathamssteeldoors.com.au/shipping-container-doors/container-door (where container-door is the product, but it also has the category in the slug)

    Hello,

    Thanks for the follow up

    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 Micheal,

    Thanks for your reply, i’ve added them in there. That would be great if you could please.

    Regards,

    Nick

    Hello,

    It looks like the Rank Math’s Primary category feature is not working well when the Default Product Category is changed in the WooCommerce Settings. I was able to reproduce the issue and have logged it. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.

    For now, to fix the issue on your site I have updated all 7 Products on your site. When creating a new product, please check the Primary category option in the Product Categories Metabox. I have added a screencast of how to select Primary Category option in the Sensitive Data Section, please go through it.

    I hope that helps. If you need any other assistance, please feel free to let us know. We are here to help.

    Thank you.

    Hi Pratik,

    Amazing! That’s great, thanks for that, and the screen cast, it’s very much appreciated!

    Look forward to update, but that will absolutely spot on until then.

    Kind Regards,

    Nick

    Todd
    Rank Math free

    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/#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 10 replies - 1 through 10 (of 10 total)

The ticket ‘Permalink structure doesn’t include category slug in product URLs’ is closed to new replies.