# Routing based on content in body

**URL:** <https://discourse.haproxy.org/t/routing-based-on-content-in-body/2536>\
**Category:** Help!\
**Created:** [May 28, 2018, 7:29am UTC](https://discourse.haproxy.org/t/routing-based-on-content-in-body/2536 "2018-05-28T07:29:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![isa](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@isa](https://discourse.haproxy.org/u/isa)\
**Post date:** [May 28, 2018, 7:29am UTC](https://discourse.haproxy.org/t/routing-based-on-content-in-body/2536/1 "2018-05-28T07:29:27Z")

</div>

Hi

We need to route traffic based on a version of our application which is passed in the Body of a request. I know this can be done on version 1.6x as below

```
    acl redirect_v1 req.body -m reg \"version\"\:\"1\"
    acl redirect_v2 req.body -m reg \"version\"\:\"2\"

```

However we using Haproxy 1.5.18. Any idea how I can do this with 1.5
