Rewrite based on Referer

I have this nginx config working:

    if ($http_referer ~ /project) {
      rewrite ^(.*) /project/$1 permanent;
    }

Is there a middleware to do the same in Traefik (i'm using Traefik with Kubernetes) ?
thanks.

Have you checked the long list of Traefik plugins on Github?