Redirect subdomain homepage to domain specific page in wordpress multisite

Have you tried creating the redirect within the CPanel of wherever your website is being hosted from? I manage all of my redirects there, rather than from within my functions.php. There’s a really simple guide on doing that here.

Or is there a specific reason that you would like the redirect to be within the functions.php?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)