No-WWW to WWW Rederict
Hey, I'm trying to deploy a Next.JS website via Dokploy. It seems to wokr quit well. However I have a problem withe rederict. I assign a
www
an non-www
domain to the App. I also created a rederict rule. For subpage like https://domain.tld/a
the rederict works fine. But when I try to get the root page https://domain.tld
I get rederict to https://www.domain.tld/$%7B1%7D
.
My RegEx pattern looks like this: ^https://domain\.tld(/.*)?$
and the rederict looks like this: https://www.domain.tld/$1
.4 Replies
Hey just a question, are you using cloudflare ?
No.
It may not be related to cloudflare, it might be related to traefik, see related issues https://github.com/traefik/traefik/issues?q=is%3Aissue+%2F%24%257B1%257D+is%3Aclosed
GitHub
Issues · traefik/traefik
The Cloud Native Application Proxy. Contribute to traefik/traefik development by creating an account on GitHub.
The link that i pasted doesn't lead to the thing i wanted to link. Please, just search for
/$%7B1%7D
in traefik issues, and you should see 3 related issues.