Link to home
Start Free TrialLog in
Avatar of mohmedsh
mohmedsh

asked on

Multi domains dbase driven website

Hi
I am looking forward the best soluation for my situation. I have multiple websites that do the same function and use the same code. the only differance is that each site uses a different domain , uses different design and displays the data according to the site category. I am not clear so lets try again.
I am working with a business marketplace. B2B websites. The main site displays categories for the whole business. I have another sites that repersents specific catgories like furnture, agriculture and so on. Some thing like http://www.worldbidpartners.com/ idea.
I am looking for the best way to design all the sites to use the same code and dbase. I do not know the idea for such soluation so please advise me the best way to do it.
Thanks
Avatar of Valadas2
Valadas2

I am doing a website for an electronics company witch sells retail and wholesale, so I also have 2 sites, one for regular costumers and one for authorized dealers. My solution was to put a "Retail" and a "Wholesale" check box in the products database so that some products show on both sites, some are retail only, some are wholesale only. You could do something similar.

Then you just have to modify the SQL query in each site in order to display only the items that have a specific check box checked, all the rest of the code should be unchanged.

Avatar of mohmedsh

ASKER

I wish it was so simple. There is no problem with the dbase design as i have categories that is related to each industry. The problem is within layout and design of each site. I mean what will be the best soluation to represend each domain with its different layout. also i think i have to use Request.ServerVariables("HTTP_HOST") to know which domain i am going to use but if we consider about 20 domains with different designs and categories, I think it will be complicated so i wish to deside the best soluation to work with.
sorry i mean using request.servervariables("SERVER_NAME")
ASKER CERTIFIED SOLUTION
Avatar of GoofyDawg
GoofyDawg
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks GoofyDawg for your answer, I am so sorry to be late in reply but i had been thinking on migration the whole application to 3-tier architecture using stored procedures with asp.net.
I will close this post and start a new one. please check it. https://www.experts-exchange.com/questions/21171873/3-tier-architecture-asp-net-Multi-domains-dbase-driven-website.html