-
Hi
I’m currently facing an issue with my WordPress website where I’m trying to remove “product-category” from the category URLs using Rank Math, but it’s not working as expected.After removing the category base in the Rank Math settings, all category URLs started giving 404 errors. I then attempted to fix this with the Redirection module by adding the following rule:
Source URL (Regex): ^product-category/(.*)
Destination URL: /$1
Redirection Type: 301 Permanent Move
Unfortunately, the redirects still aren’t working and the URLs continue to show 404 errors. I also tried with the leading slash (^/product-category/(.*)) but the problem persists.
Could you kindly guide me on how to properly fix this issue? Is there something I might be missing in Rank Math’s redirection settings, or do I need to handle this differently (e.g., via .htaccess)?
Your help would mean a lot, as I’m looking to make my URLs clean and SEO-friendly without the “product-category” base.
Thank you so much for your time and support.
Best regards,
Sadia M
https://www.ahmadmobiles.com
The ticket ‘Help Required: Unable to Remove “Product Category” from URL in Rank Math’ is closed to new replies.