leanghenglim
12-13-2010, 04:58 PM
Hi All,
I have been searching all over the net to try to find out what I seek but to no avail. I’m wondering if someone with expertise in domain management could help me out. It’s a combination of domain/host/php problem.
I have a database of customer records. Each customer has a profile page. Eg www.example.com/profile.php?cust_id=123456789
The customer would like to have their own domain linked to their profile page. Is this possible?
I have tried searching for solutions but all I found are the following:
1. Dynamic virtual hosting. The customer profile is stored in a database, so virtual hosting will not suit this situation.
2. CNAME records. I suppose I could host a DNS server, get the customer to point their domain registrar to the DNS server. The DNS server can then point www.customername.com to the alias www.example.com/profile.php?cust_id=123456789. Will this even work? Will the CNAME redirect parse the php get method variable similar to a HTTP request?
3. Mod_rewrite. Could this be possible? Get the customer to point their domain registrar to my host’s DNS server, then rewrite the URL based on the HTTP request? IE rewrite all pages where cust_id=123456789 to www.customername.com
The problem with number 2, even if it is possible, is that I can only get the one page to display. If I give the customer more pages to access such as a blog page, then I will start to see problems in terms of links.
3, if possible and can be done dynamically, would be an ideal solution…
But alas my knowledge is quite limited in the domain space so I’m not sure of any limitations. I’m not even sure if this problem can be solved.
Please help, or point me in the right direction. Thanks in advance.
I have been searching all over the net to try to find out what I seek but to no avail. I’m wondering if someone with expertise in domain management could help me out. It’s a combination of domain/host/php problem.
I have a database of customer records. Each customer has a profile page. Eg www.example.com/profile.php?cust_id=123456789
The customer would like to have their own domain linked to their profile page. Is this possible?
I have tried searching for solutions but all I found are the following:
1. Dynamic virtual hosting. The customer profile is stored in a database, so virtual hosting will not suit this situation.
2. CNAME records. I suppose I could host a DNS server, get the customer to point their domain registrar to the DNS server. The DNS server can then point www.customername.com to the alias www.example.com/profile.php?cust_id=123456789. Will this even work? Will the CNAME redirect parse the php get method variable similar to a HTTP request?
3. Mod_rewrite. Could this be possible? Get the customer to point their domain registrar to my host’s DNS server, then rewrite the URL based on the HTTP request? IE rewrite all pages where cust_id=123456789 to www.customername.com
The problem with number 2, even if it is possible, is that I can only get the one page to display. If I give the customer more pages to access such as a blog page, then I will start to see problems in terms of links.
3, if possible and can be done dynamically, would be an ideal solution…
But alas my knowledge is quite limited in the domain space so I’m not sure of any limitations. I’m not even sure if this problem can be solved.
Please help, or point me in the right direction. Thanks in advance.