Frank Maas wrote:[color=blue][color=green]
>> I think i'm using the wrong handler, but is there any handler can handle
>> this problem?[/color]
>
> 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:
>
> [url]http://o.example.com/2.gif[/url] -> 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 [url]http://o.example.com/REDIR/(.*[/url]) 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
>
>[/color]