Multisite not working on subdomain

I have created a multisite wordpress website on, everything was working fine on the directory but my client wants it on subdomain.
I used a guide to do it but after creating an account and activating it, the site redirects to the index of my website.
Please help.