I migrated my domain name from Shopify to Woocommerce.
In Rankmath I created 3 regex with permanent rediction (301):
1. ^pages/(.*) to remove “pages” from URL (myshop.com/pages/page-name -> myshop.com/page-name).
2. ^products/(.*) to remove “products” from URL (myshop.com/products/product-name -> myshop.com/product-name).
3. ^collections/(.*) to remove “collections” from URL (myshop.com/collections/product-category-name -> myshop.com/product-category-name).
Works halfway! About 5 out of 20 URLs work… Why?! That does not make sense!
Those that don’t work redirect to home page.
Please help me it’s urgent!
The ticket ‘Regex works halfway’ is closed to new replies.