> I think i'm using the wrong handler, but is there any handler can handle > this problem?
As far as I can remember mod_rewrite kicks in after a PerlTransHandler. This should enable you to use a TransHandler to rewrite the URI based on the database contents, eg: http://o.example.com/2.gif -> http:/o.example.com/REDIR/o2.example.com/2.gif (be sure to return DECLINED) and then have mod_rewrite/mod_proxy proxy this for you: RewriteRule http://o.example.com/REDIR/(.*) http://$1 [proxy,last] the 'REDIR' tag can be anything suitable for matching. The end user should not notice this. Not tested, but think it should work Regards, Frank