non-www subsites redirect to main site instead of correct sub-site

I’m having problems with non-www versions of my MU sites.

My MU sites are like this:

Main Site => www.maindomain.com
Site 2 => www.domain2.com (domain2.maindomain.com)
Site 3 => www.domain3.com (domain3.maindomain.com)

but when someone uses the non-www version it redirects to www.maindomain.com login page. I used define( ‘NOBLOGREDIRECT’, ‘%siteurl%’ ) it didn’t work the redirections just changed to the homepage of the main site.

Also tried to forced redirection on .htaccess, still not working.

Read more here:: non-www subsites redirect to main site instead of correct sub-site

Leave a Reply

Your email address will not be published. Required fields are marked *