At the moment I make use of the wilcard function of dns to determine wat site
I am on.
for instance i use http://site1.mysite.com
http://site2.mysite.com
I do a ereg() to determine what site is called and then I generate
the website. Select the title, news, etc.
For every page that is requested, I look up the ID of the site that is called.
If the ID is found the news will be selected for this site out of 1 table called 'news'.
If the requested url is http://www.mysite.com, I ignore the ID and simply
select all the news there is.
The Idea is to make one big parent portal site, branched out to not so big children portal sites and keep it all in one database.
My Question:
How can I make this work on a site which doesn't support wildcards ?
if I use for example http://mysite.com/site1
http://mysite.com/site2