This article shows you how to make your domain resolve to www.example.com instead of example.com.
By default, domains on WordPress hosting resolve to domain.com instead of www.example.com. In order to change your domain to include the 'www' subdomain in the site address, you must make a simple tweak to the database. The easiest way to do this is via phpMyAdmin, which may be accessed from the MediaTemple account center.
1. Log in to your WordPress hosting service and select Manage Site for the domain that you'd like to work with.
2. Select phpMyAdmin from the panel on the left
3. Select your database from the menu on the left.
4. Click on the Browse icon for the wp_options table.
5. Both the siteurl and home options need to be edited. Click on the pencil icon to enter the menu.
6. Update the addresses for both the siteurl and home options from http://example.com to http://www.example.com. Click Go after updating the address. Make sure you use 'https' instead of 'http' if you have an SSL installed.
7. Your domain should be resolving to 'www' now. It may be necessary to flush your cache in order to see the change immediately.