# Strip part of a path prefix when routing

**URL:** <https://discuss.konghq.com/t/strip-part-of-a-path-prefix-when-routing/1940>\
**Category:** Questions\
**Created:** [September 24, 2018, 7:15pm UTC](https://discuss.konghq.com/t/strip-part-of-a-path-prefix-when-routing/1940 "2018-09-24T19:15:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![alexashley](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@alexashley](https://discuss.konghq.com/u/alexashley)\
**Post date:** [September 27, 2018, 1:04am UTC](https://discuss.konghq.com/t/strip-part-of-a-path-prefix-when-routing/1940/4 "2018-09-27T01:04:30Z")

</div>

Yes, I believe `strip_path` would work for the a route like `/my-service`, but I’m a little confused on the best way to tie multiple routes to a single service. A root path like `/my-service` with `strip_path` set to true results in an upstream request with a path of `/`, and isn’t the same true for a path like `/my-service/foobar`? In that second case, I’d like the proxied path to instead be `/foobar`.

I could create another service with the same upstream API and give it a path of `/foobar`, then attach a route with a path of `/my-service/foobar` (with `strip_path` set to true) and get the result I’m looking for; however, I’m wondering if it’s possible to do this with a single service.

The problem I’m trying to solve is that I have a single route that requires authentication and several other routes that do not; these routes all proxy to the same deployed API, so it made sense to me to configure Kong with a single service but perhaps that’s not the best way to accomplish that.

---

_[View the full topic](https://discuss.konghq.com/t/strip-part-of-a-path-prefix-when-routing/1940)._
