What is the meaning of Rightly?

In a right manner; correctly, justifiably.

Source: wiktionary.org