The CMS suggestions are all good, but what you're talking about is a subdomain, like sales.microsoft.c0m. This is handled in your web server, likely Apache, or by your Internet provider. It's trivial, but specialized, like making ice. If you don't know how it's done or you lack access to a freezer...