Enforce WWW

How do I go about enforcing www in the URL? I am not really sure if this is a .htaccess, database or file issue.

If I enter "WWW.mydomain.org" it auto-directs to "mydomain.org". How can I prevent that?

Thanks