reroute

How to reroute to a different url identifying browser AND system language (PHP?

感情迁移 提交于 2019-12-14 03:33:34
问题 The Issue We've got a ccTLD website (example.de) with subfolders for different languages, which obviously needs to be moved to example.com for proper language targeting. Since example.com belongs to the parent group company which has been 301ing all visitors to us-group.com so far and is reluctant to allow us 301ing example.de to example.com and ditch their existing 301s to us-group.com, we need to work around a bit. The Task Visitors from the North and South Americas should be rerouted to us

How to extract substring IN JSON PATH using CAMEL

微笑、不失礼 提交于 2019-12-11 09:59:18
问题 I am trying to configure my routes based on the substring of value from an attribute. For example, I have this Json Attribute: { "carColor": "Red/hatchback" } There are other possibilities such as "Blue/Sedan" and "Black/SUV" etc. I would like to extract the colors only. Meaning I would like to extract the colors before the "/" sign like "Red", "Blue, "Black" etc. This is what I have at the moment: <when> <jsonpath>$.root[?(@.carColor == 'Red')]</jsonpath> <to uri="redCar"/> </when> I know it