D
Dokploy10mo ago
Pascal

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
Siumauricio
Siumauricio10mo ago
Hey just a question, are you using cloudflare ?
Pascal
PascalOP10mo ago
No.
predragnikolic
predragnikolic10mo ago
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.
predragnikolic
predragnikolic10mo ago
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.

Did you find this page helpful?