I'm looking for ideas or solutions to the following...
I have a multi-blog system where people access these blogs through a URL like: blogs.site.com/blogname
Using mod_rewrite that URL redirects to blogs.site.com/index.php?blog=blogname
index.php and all the associated files are stored under /www/site.com/blogs/ and I would prefer to keep them there if possible.
The above works fine, but we are now forced to change our URL structure to blogname.site.com instead (or blogname.blogs.site.com would be fine too). blogname is dynamic and as a first step I setup wildcard dns so anything.site.com does work. It just pulls up site.com by default.
So any ideas on how to accomplish that? I tried blogname.site.com and using mod_rewrite was able to redirect those requests to blogs.site.com/blogname but the problem with that was mod_rewrite sees them as different sites so won't transparently redirect them and changes the URL in the address bar I assume as a security thing. The URL cannot change.