views:

78

answers:

0

We have a client who has many branches around the UK. Some of their branches have their own sites with their own domain names. The client has a part built system where visiting:

www.client.com/aboutus.php?id=branchId

shows the About Us page for that particular branch. What I need is a way to map specific domains to their branchId (this is all stored in a DB at the moment) so that

www.client.com/aboutus.php?id=4

maps to

www.branchid4.com/aboutus.php