We are planning to use Domain Access to manage 5 different domains that will share content. The majority of our pages will be shared across all 5 domains and will look identical on each domain. Domain Access makes it trivial to handle this use case. However, on some of the pages, 95% of the content will be identical and 5% of the content will be dependent upon the domain that is serving the page.
One possible solution is to create a unique page for each domain and publish it to the appropriate domain. Although this works, it is difficult to maintain because we would need to maintain changes to the identical content across 5 unique pages.
Another option would be to embed PHP in the page, such as
shared content for all 5 sites here.
<?php if ($_SERVER['HTTP_HOST'] === 'domain1.example.com') { ?>
domain1 specific content here
<?php } else if ($_SERVER['HTTP_HOST'] === 'domain2.example.com') { ?>
domain2 specific content here
<?php } ?>
Again, this would work, but has several disadvantages. I am looking for a way to share the identical content across the domains and yet have site specific content within a page in a way that makes it feasible to maintain and easy for content editors (non-technical users) to edit. Does anyone have any suggestions?