szabgab / dwimmer

A blog engine?
http://dwimmer.org/
11 stars 3 forks source link

Allow additional domains to map to a hostname #1

Open szabgab opened 13 years ago

szabgab commented 13 years ago

Allow configuring blabla.com and www.blabla.com to match someblabla.dwimmer.org Set one of them as the main address and let the rest of the name forward everything to the new address.

szabgab commented 13 years ago

CREATE a TABLE called host with full hostname domain.com or www.domain.com (UNIQUE) a site ID and a flag 'main' that should be on for exactly one entry for each site. A site does not really have to have a name if we keep all the possible hostnames in this table but maybe instead of having a 'main' column that is mostly empty we need the site.name field to have the main sitename.