WordPress plugin for automatic subdomain redirection: http://wordpress.org/extend/plugins/automatic-subdomains/