# Translate a request path different from an API path

**URL:** <https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [January 26, 2020, 10:04am UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403 "2020-01-26T10:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaboume](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kaboume/32/1618_2.png) [@kaboume](https://discuss.konghq.com/u/kaboume)\
**Post date:** [January 26, 2020, 10:04am UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403/1 "2020-01-26T10:04:07Z")

</div>

Hello,  
I would like to use Kong Gateway to access an internal API accessible through a url of the type [http://172.1.1.1/\*\*toto/titi](http://172.1.1.1/**toto/titi)\*\*  
I would like the public url of this api to be accessible through the url: [http://api.application/\*\*lolo/lili](http://api.application/**lolo/lili)\*\*

I have created the service in Kong and the attached route, but I don’t know how to map the path of the request (/ lolo/lili) which is different from the path of the internal API (/ toto/titi).

With an identical path between the request and the API path, it works well but when the paths are different, I don’t know how to do it …

Thanks for your help.  
Eric

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 27, 2020, 4:31pm UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403/2 "2020-01-27T16:31:27Z")

</div>

Create a route with `/lolo/lili`. And then in the service of this corresponding route, set the path attribute to `/toto/titi`.

---

<div class="post-metadata">

**Author:** ![kaboume](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kaboume/32/1618_2.png) [@kaboume](https://discuss.konghq.com/u/kaboume)\
**Post date:** [January 27, 2020, 7:48pm UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403/3 "2020-01-27T19:48:46Z")

</div>

> [@hbagdi](#):
>
> ate a route with `/lolo/lili` . And then in the service of this corresponding route, set the path attribute to `/toto/titi` .

Thank you for your answer.  
However, I would like to keep “/” as path for the service because I have multiple routes for this service.

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 28, 2020, 5:20pm UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403/4 "2020-01-28T17:20:24Z")

</div>

This is one area where Kong unfortunately struggles at the moment.

Our docs are outdated in this specific area as well.  
Can you follow along this thread: [Plans to expose config.rewrite.uri in request-transformer plugin](https://discuss.konghq.com/t/plans-to-expose-config-rewrite-uri-in-request-transformer-plugin/4551/2)?

I think that’s what you need.

---

<div class="post-metadata">

**Author:** ![kaboume](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kaboume/32/1618_2.png) [@kaboume](https://discuss.konghq.com/u/kaboume)\
**Post date:** [January 28, 2020, 8:22pm UTC](https://discuss.konghq.com/t/translate-a-request-path-different-from-an-api-path/5403/5 "2020-01-28T20:22:45Z")

</div>

Thank you for these informations
