# URL rewriting using kong plugin

**URL:** <https://discuss.konghq.com/t/url-rewriting-using-kong-plugin/10476>\
**Category:** Questions\
**Created:** [August 3, 2022, 3:09pm UTC](https://discuss.konghq.com/t/url-rewriting-using-kong-plugin/10476 "2022-08-03T15:09:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonzuzu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jonzuzu/32/3553_2.png) [@jonzuzu](https://discuss.konghq.com/u/jonzuzu)\
**Post date:** [August 3, 2022, 3:09pm UTC](https://discuss.konghq.com/t/url-rewriting-using-kong-plugin/10476/1 "2022-08-03T15:09:33Z")

</div>

Hi all,

one of my micro service exposes several urls (services)

Ex:  
/myservice/actuator/health  
/myservice/foo

I just want my first url to be rewritten as :  
/actuator/health

the second one should keep the “prefix”.

I found the request-transformer kong plugin I already used for http header add but the replace.uri parameter will replace both of the uri, right ? not only the one I want to …

Any suggestion please ?

Thanks

---

<div class="post-metadata">

**Author:** ![Heran-foo](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@Heran-foo](https://discuss.konghq.com/u/Heran-foo)\
**Post date:** [August 19, 2022, 5:24am UTC](https://discuss.konghq.com/t/url-rewriting-using-kong-plugin/10476/2 "2022-08-19T05:24:16Z")

</div>

Did you find any solutions for your issue? I am also having the same issue here. If you have found any solutions or ideas, you could guide me! Thanks.
