Redirects with Traefik
This guide will help you to configure redirects in Coolify with Traefik.
The configuration is slightly different for Standard Applications
and Docker Compose
based applications/one-click services.
Standard Applications
- You need to set both FQDNs for your resource, so for example:
coolify.io,www.coolify.io
- Add a unique middleware to your resource.
www -> non-www
non-www -> www
Docker Compose based Applications & one-click Services
- You need to set both FQDNs for your resource, so for example:
coolify.io,www.coolify.io
- You only need add the middleware to the router.
www -> non-www
non-www -> www