htaccess url redirect to www for any prefix
===

I have a site wherein anything you put instead of www, it still works

ie. abc.example.com, w.example.com, wwww.example.com, ww.example.com, etc 

what i need to do is redirect all of this to the www url

any help would be of great help

Regards,

Sushil