Redirect to subdomain and keep ranking

Hello everybody

I see many movies streaming website redirect from domain.com to www1.domain.com or www2.domain.com, and the rank still increasing

Can you please tell me something about this redirect?