thanks Andrea, I tried everything I can, the domain mapping works without URL written. i.e. d domainB.com works on a siteB homepag, as well as domainB.com/?p=123
But once I turn on the permalink, it will show a 404.
Is there any way I can set both domainA.com and domainB.com pointing to the one installation? so both domainA.com/siteB & domainB.com/siteB will work?