Subdomain detection changes base_url config item

When subdomain is detected, the controller sets the base_url to match
the subdomain.