This just gave me the redirect loop so I put everything back for now while I seek some help. Does anyone have any ideas? At this point I don’t have a preference if www is there or not but I would like both to work!

I also tried some htaccess redirects above, during, and after the #BEGIN WORDPRESS# area but those always ended up giving me an Internal Server Error. I’m hosted with Dreamhost.

I have never used the Domain Mapping plugin you reference, but your data suggests that the preference is to have the naked domain set as primary. I usually start off at the hosting level with and A record for the naked domain and a cName for www, although I understand that with this domain mapping plugin you can have a subdomain www that is distinct from the naked domain.

Coming to WordPress, it’s curious that you chose 3 queries, but it seems to me that there are two that wouldn’t get picked up and they are pretty important, namely the wp_site and wp_blogs.