I recently deployed my next.js app to Digital Ocean, it’s working perfectly on my domain.bio, however, it wasn’t working on www.domain.bio. So what I did was, I inserted domain.bio as a domain on App Platform domains under my app, then inserted *.domain.bio, which looks like this now:
The problem is, now domain.bio and www.domain.bio are 2 separate websites and logging in one isn’t affecting the other (normally).
I tried to insert CNAME www on my digital ocean domains section, but it kept throwing 421 misdirected request (cloudflare) when I visited www.domain.bio. Currently, my domain DNS looks like this:
What can I do to redirect www.domain.bio to domain.bio?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.