Multisite redirect problem with NOBLOGREDIRECT

My problem is that after rebuilding a website to Multisite a few months back i got a redirect issue that affect my website negative.

When going to Multisite i did get a problem with visitors getting redirected to

when coming in on a url without “www”, This was solved by adding

define( 'NOBLOGREDIRECT', '' );

in wp-config, Did not think so much on this after that but did over the coming months see a quite big drop in search ranks and have since then been looking for the issue time to time and think i got it now, When visitors coming in to site without using “www” on url they will be redirected with an “302” to

Say a visitor coming to the site on the url they will get an 302 redirect to

How can this be solved so the visitor coming in on get’s correctly 301 redirected to

Have been trying some htaccess hax but don’t think it can be solved from there, think the main issue is within the wp-config and the need to use define( 'NOBLOGREDIRECT'

Any solution to this ?