Url forward and www

When creating a URL page forwarding rule, do I need to specify *example.com if I want to include www and non-www versions, or does simply example.com cover both www and non-www, and also http and https? Thank you

If you want to forward everything to a new domain, put a * in front.