I need a set of rules that will remap this:
http://(\w+).livejournal.com/(.+)
to this:
http://www.livejournal.com/users/$1/$2
Currently username.livejournal.com requests aren't load balanced, since we use a separate vhost for those. That sucks. (not 1 per user.... that'd really suck. we use ServerAlias *.livejournal.com)
Anybody know how to do this?
Also, could you set an environment variable if it matches, so the LJ code can make links appropriately. (if you're looking at foo.livejournal.com, the calendar link should be to foo.livejournal.com/calendar, not www.livejournal.com/users/foo/calendar, ya know?)