Domain Mapping and WWW

Does anyone have a step by step of how to map a domain that has a www?

I have some client sites that have had a www domain for years and want to keep their structure intact for SEO etc.

Thanks