Regex redirect of product tag url
-
Hi, I’m trying to redirect an old tag url ‘/product/search?tag=query’ to a new woocommerce product tag structure ‘/product-tag/query/’ using regex like this…
Source: ^/product/search?tag=(.*)
Target: https://domain.com/product-tag/$1/Unfortunately this doesn’t work and gives a 404 page.
Any idea what could fix this please?
Thanks for your help 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Regex redirect of product tag url’ is closed to new replies.