Best way to redirect to www
with Coolify?
#1999
-
I've always set up my sites to redirect the base domain to While setting that redirect up, I was having trouble getting it working in Coolify. If you use Vercel or Netlify, you're used to the platform "automagically" setting that up for you. My setup - Hetzner server behind Cloudflare CDN proxy. I have SSL/TLS set to "full" in Cloudflare. It hosts a static site with Nixpacks. The first thing I tried was setting up a CNAME record for The second thing I tried was a Traefik config to have its dynamic router redirect to www. I tried that at both the server proxy config level and the project level without luck, but I probably just not using the right config values. The last thing I tried which sort of works - I have the project assigned to BOTH my root domain and the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Since you are using Cloudflare you can just select your domain on their Dashboard and chose Rules => Redirect Rules on the left Menu. There you can easily build a rule for this. No need to involve additional DNS-Settings or Traeffik. Greets |
Beta Was this translation helpful? Give feedback.
-
Thanks for this I've been pulling my hair out trying to get this sorted and the cloudflare dynamic redirect rule worked a treat for me! |
Beta Was this translation helpful? Give feedback.
Since you are using Cloudflare you can just select your domain on their Dashboard and chose Rules => Redirect Rules on the left Menu. There you can easily build a rule for this. No need to involve additional DNS-Settings or Traeffik.
Greets
-act