Force redirection from https://www

Hi,

I installed a Tutor edx instance and it is working fine except for the https://www. redirection. Early in the installation, tutor asked for LMS ans CMS URLS to which i typed mydomain.com et studio.mydomain.com

However when i type in a browser https://www.mydomain.com it generates a “Bad request” error. How to force redirect from https://www.mydomain.com to https://mydomain.com

I appreciate your help
Thanks
HN

By default, Tutor does not redirect from www.lms.com to lms.com. You should write a plugin for that! You would have to implement the nginx-extra and https-create patches. https://docs.tutor.overhang.io/plugins.html#yaml-file

Would someone please write a step by step tutorial, how to do it. I am pretty sure, many will benefit for it. Thanks!