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

http://www.url.com/wp-signup.php?new=url.com

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

define( 'NOBLOGREDIRECT', 'http://www.url.com' );

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 http://www.url.com.

Say a visitor coming to the site on the url http://url.com/some-page/page they will get an 302 redirect to http://www.url.com

How can this be solved so the visitor coming in on http://url.com/some-page/page get’s correctly 301 redirected to http://www.url.com/some-page/page

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 ?