** EDIT **
It turns out it was htaccess file.
Two things to keep in mind if you're having this problem:
- Each host has a different way of rewriting the domain. Google search your host and you should be able to find it. Otherwise just call your host.
- Make sure that you place that redirect ABOVE WP stuff in the htaccess file.
Hope this helps!
I have one a mess of a multisite install.
I recently turned my new site live, moving my multisite from dev.example.com to http://www.example.com. All went smoothly, except one little thing. If you try to go to a page without the www subdomain, it redirects me to the main blog's homepage.
I assumed this was an .htaccess problem. After searching and trying different things for 12 hrs, I finally caved and called for tech support. He assumed .htaccess file too, but despite everything we tried, it simply would not work properly.
He suggested that I download my sql database, and do a find [www.example.com] and replace [example.com] and see if that worked. Well, in short, I now have a terribly messed up multisite install.
Has anyone ran into similar problems? Does anyone know if there is a place in the sql file that may have required both the www and non-www url? My assumption is that when I did the find and replace, it replaced something it shouldn't have.