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:
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
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.
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.