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
.5 replies