# Redirect requests to external service based on path

**URL:** <https://community.traefik.io/t/redirect-requests-to-external-service-based-on-path/11133>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [July 7, 2021, 12:29pm UTC](https://community.traefik.io/t/redirect-requests-to-external-service-based-on-path/11133 "2021-07-07T12:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nageshbhad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/nageshbhad/32/3980_2.png) [@nageshbhad](https://community.traefik.io/u/nageshbhad)\
**Post date:** [July 7, 2021, 12:29pm UTC](https://community.traefik.io/t/redirect-requests-to-external-service-based-on-path/11133/1 "2021-07-07T12:29:32Z")

</div>

Hi ,  
I am looking to redirect the requests coming to my k8s cluster to external service .  
I have traefik as the ingress controller in my google cloud cluster . I want to redirect the requests based on path to external service which is in google app engine .  
My Ingress Route:

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: test-svc-ingress
  namespace: development
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`test.domain.io`) && PathPrefix(`/test/prefix`)
      kind: Rule
      services:
        - name: test-svc
          port: 443

```

Service :

```auto
apiVersion: v1
kind: Service
metadata:
  name: test-svc
  namespace: development
spec:
  type: ExternalName
  externalName: external.domain.com

```

---

<div class="post-metadata">

**Author:** ![daniel.tomcej](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/daniel.tomcej/32/262_2.png) [@daniel.tomcej](https://community.traefik.io/u/daniel.tomcej)\
**Post date:** [July 12, 2021, 8:42pm UTC](https://community.traefik.io/t/redirect-requests-to-external-service-based-on-path/11133/2 "2021-07-12T20:42:54Z")

</div>

Hello @nageshbhad,

When you say redirect the requests, do you mean that you want to return a client redirect? with a 30x response code?

Or are you wanting to proxy the request to a different domain? If so, using the externalName service should do what you want.
