Brad Fitzpatrick (bradfitz) wrote in lj_dev,
Brad Fitzpatrick
bradfitz
lj_dev

Project!

I have a project for anybody with mod_rewrite experience ---

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?)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 16 comments