Forum Topic: redirecting shop
I just can’t seem to figure out how to make this work. I’ve tried various redirects. I have wordpress and woo-commerce.
I want to change all the URLs in my “Shop by Brand” from:
Same thing with “Shop by Category”
I want to change all the URLs in my shop (Shop by Category) from:
I would GREATLY appreciate any suggestions / help.
1 Reply to “redirecting shop”
The URLs that you are trying to match are basically the same (i.e., beginning with “shop”), so the trick is to differentiate between the two, which may not be possible depending on your configuration.
For example, if all the redirects were headed to the same URL (say,
/dog-bag-carrier/atom-pet-carrier/), then it would be easy to do something like this:
RedirectMatch 301 ^/shop/(.*) http://dogsized.com/dog-bag-carrier/$1
Without actually creating a list of posts, PHP may enable you to evaluate other factors, such as category or tag, to help distinguish between the two redirects.