Many domains, one database?
April 2, 2007 7:14 PM
Subscribe
What would you say is the best way to have 10 domains access one database?
I am a web developer but my forté is definitely not the hosting or networking side. So, say I have 10 domain names along the lines of petcare.com, puppycare.com, kittencare.com, ferretcare.com, etc. I want each web site to display information about each of these different pets, but I want to store all the information in one database on the "master" petcare.com server.
Do I need to set up 10 hosting accounts to accomplish this? (I do already have the domain names.)
What I want to do is to visit puppycare.com and for it to go to one, "master" index.asp page which says, "ok, this time she typed in puppycare.com, therefore I'm going to retrieve all sorts of puppy-goodness from the database over at petcare.com." Or have it be able to say, "all righty, this time she wants ferrets." But just have *one* index.asp page process this, not 10 different home pages on 10 different web servers.
I am fully able to accomplish the above in a one-domain scenario by typing in "petcare.com/index.asp?pet=puppies," or what-have-you. But I'd like to just type in "puppycare.com" and have it get all the info from the database at petcare.com, and have it still display "puppycare.com/blahblah" in the address bar. How would *you* do this?
I needed to bounce this off someone (as I have no partners) to see what obvious answers I'm overlooking. My focus just isn't "there" in my web knowledge.
(Doubt this matters, but it has to be Access/.asp.)
posted by iguanapolitico to computers & internet (14 comments total)
2 users marked this as a favorite
posted by fvox13 at 7:29 PM on April 2, 2007