is there a way in Ktor to do a 301 redirect from www.domain.com to domain.com ?
tried doing that 301 redirect at the DNS level and it seems to cause SSL errors.
had some time to play around with Ktor and get a 301 redirect working
now all urls that contains www.domain.com/... will redirect to domain.com/...
Maybe adding a "canonical host" feature in Ktor would be nice for exactly this