allow blogs on different domains

What I mean is that every blog can have a totally different domain name (URL), which makes use for having different blogs on subdomains or other domains that are directed to the same webspace using ServerAlias.

What's with images or other media related stuff? this should be taken from each blogs path (perhaps you could enter a different "$img_url" for each blog, the same with media. It should be allowed to use the same directories for different blogs.

When you have subdomains that are simply directed to the same filesystem's path images and stuff like that (skins) would be pulled from the same directories anyway.

4 comments

For server accesses (such as skins) $basepath will stay the same anyways.
However, when the skin tries to access its resources (CSS, images…) it will call skinbase()… this should probably become a method of the Blog object.

I think blogs should have basically two modes:

- NORMAL: the blog is INSIDE of the $baseurl . In this case, $Blog->siteurl is a subpath of $baseurl

- INDEPENDANT: the blog can be on any URL. In this case, $Blog->siteurl is a full URL.

The Blog object should handle all of the abstraction due to this.

Blog pages/skins should not rely on $baseurl anymore but on Blog object methods.

I was actually just discussion something like this with Jason this morning. All you need to do is generate the URLs off of HTTP_HOST and they can operate on completely different domains.

Of course, it might be a good idea to implement a way to keep track of which domains can mask over a given blog. That would keep people from redirecting to your site with some sort of man in the middle type security exposure.