# Static Configuration to Dynamic Configuration: redirectTo

**URL:** <https://community.traefik.io/t/static-configuration-to-dynamic-configuration-redirectto/11551>\
**Category:** Traefik v2\
**Tags:** kubernetes-crd, kubernetes-ingress, middleware\
**Created:** [August 24, 2021, 3:54pm UTC](https://community.traefik.io/t/static-configuration-to-dynamic-configuration-redirectto/11551 "2021-08-24T15:54:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rowi1de](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/rowi1de/32/3863_2.png) [@rowi1de](https://community.traefik.io/u/rowi1de)\
**Post date:** [August 24, 2021, 3:54pm UTC](https://community.traefik.io/t/static-configuration-to-dynamic-configuration-redirectto/11551/1 "2021-08-24T15:54:59Z")

</div>

Hey traefikers,

I'm currently using traefik 2.4.9 with Kubernetes via helm, which has the following static configuration:

```yaml
 ports:
          web:
            redirectTo: websecure
          websecure:
            tls:
              enabled: true  

```

This globally redirects HTTP to HTTPs.  
Now I need to make an exception for one service under a specific domain ([unsafe.com](http://unsafe.com)), which is not possible via static configuration. So I'm trying to migrate this to a dynamic configuration (e.g. IngressRoute) and I already have a suitable middleware to make this work.

However, when using IngressRoute, I would need to specify a concrete (Traefik)Service, which I don't want.

Goal would be something like this:

```yaml
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: http-to-https-route
  namespace: default
spec:
  entryPoints:
    - web
  routes:
    - kind: Rule
      match: !Host(`unsafe.com`)
      middlewares:
        - name: http-to-https-middleware
      #services: let traefik figure out what to do 

```

EDIT: seems like it's possible to use `noop@internal` as pointed out here [Noop@internal service](https://community.traefik.io/t/noop-internal-service/5165)
