Hi everyone,
I have a CMS that uses one database and selects different data for different websites simply by using a column called CUST_NO in every table. Now I need to set this up on cpanel. I have a WHM and can create cpanel accounts if needed. The database is also imported and ready to serve.
After many hours trying to figure out where to start I was hoping to get some startup help here.
My questions: Is it possible to forward domain1.com to the same PHP files and the same database as domain2.com and somehow get the correct data for the correct site?
I.E: A user browsing domain1.com would trigger the sql query SELECT COMPANY_NAME FROM TABLE WHERE CUST_NO=1.
Can someone point me in the right direction?
EDIT: The domains are external domains forwarded/redirected to my cpanel.
I have a CMS that uses one database and selects different data for different websites simply by using a column called CUST_NO in every table. Now I need to set this up on cpanel. I have a WHM and can create cpanel accounts if needed. The database is also imported and ready to serve.
After many hours trying to figure out where to start I was hoping to get some startup help here.
My questions: Is it possible to forward domain1.com to the same PHP files and the same database as domain2.com and somehow get the correct data for the correct site?
I.E: A user browsing domain1.com would trigger the sql query SELECT COMPANY_NAME FROM TABLE WHERE CUST_NO=1.
Can someone point me in the right direction?
EDIT: The domains are external domains forwarded/redirected to my cpanel.
Last edited: