Wildcard Custom Redirect for Translatepress
-
Hi, First of all thanks for this great plugin.
So we are using translate press plugin and have 2 different languages, and we use this plugin as well. And there is a small little challenge here, there are 2 websites that are identical except for the fact one is the main website while the other is a separate setup that is the shop using Woocommerce.
Now for the website that does not have woo commerce, the menu has a button to the shop.
Main Website XYZ.com
Shop XYZ.Com/shopThe menu on both websites are the same, when someone visits the shop and their language is xyz/shop/fr certain links also act up.
for example, xyz.com/about can be seen also from xyz.com/de/about which is fine.
Problem
If you click on a link from the menu or such FROM the shop (xyz.com/shop/de) then when the link is clicked we will get xyz.com/shop/de/about which does not exist. It should translate to xyz.com/de/about.What would be solution to this? Do I need to make a redirect for every single page individually, a custom 302 redirect? or can a wild card be used? If so what should that look like?
Thanks!
- You must be logged in to reply to this topic.