Setting www as the default option for domain name

Is it possible to configure domain for the app, so that it would always open it with www. at the beginning by default?

I think thats done on the domain hosting