This is a complex topic. Far more complex than can be answered in here. Best to hire an expert to help you with this, because Google will penalize you if they visit the same URL multiple times where different content is returned. You can research this yourself by digging into the Google Search...