# Traefik Url Redirect Without Change URL

**URL:** <https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990>\
**Category:** Traefik v2\
**Tags:** ecs\
**Created:** [March 24, 2024, 10:51am UTC](https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990 "2024-03-24T10:51:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekarakaya](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@ekarakaya](https://community.traefik.io/u/ekarakaya)\
**Post date:** [March 24, 2024, 10:51am UTC](https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990/1 "2024-03-24T10:51:09Z")

</div>

Hi, we are using AWS Api Gateway for redirect a dummy address to our APIs.  
For example, we have an address like [abc.com](http://abc.com) and we have 5 path for this address like /customer, /product etc. we are getting response from different APIs for all paths but we are not changing [abc.com/customer](http://abc.com/customer) when we get answer from API. I am trying to do same thing on Traefik but I am new on Traefik. I searched everywhere but I didn't find a solution. I used middlewares but it is changing [abc.com/customer](http://abc.com/customer) to backend url. Someone help me for my case? Thanks...

version: "3.3"

services:

traefik:  
image: "traefik:v2.11"  
container\_name: "traefik"  
command:  
#- "--log.level=DEBUG"  
- "--api.insecure=true"  
- "--providers.docker=true"  
- "--providers.docker.exposedbydefault=false"  
- "--entrypoints.web.address=:80"  
ports:  
- "80:80"  
- "8080:8080"  
volumes:  
- "/var/run/docker.sock:/var/run/docker.sock:ro"

```
labels:
  - "traefik.enable=true"
  - "traefik.http.routers.whoami.rule=Host(`apitest.abc.com`)"
  - "traefik.http.routers.whoami.middlewares= redirection"
  - "traefik.http.middlewares.redirection.redirectregex.regex=^http?://apitest.abc.com/(.*)"
  - "traefik.http.middlewares.redirection.redirectregex.replacement=http://us-customer.abc.local/$${1}"

```

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [March 25, 2024, 8:11pm UTC](https://community.traefik.io/t/traefik-url-redirect-without-change-url/21990/2 "2024-03-25T20:11:03Z")

</div>

Can you give some structured examples of source request and target request (kind of Traefik input and output)?
