changing API calls to www subdomain for new apache redirect