I've searched for a solution of my problem on SO but none of the answers worked for me.
This is what i want to achieve:
Redirect all
http://example.com -> https://example.com
http://www.example.com -> https://example.com
https://www.example.com -> https://example.com
Basically i want that whatever form of the domain is accessed to be redirected to non-WWW https (https://example.com)