Hello Etienne,
you can use an extended ACL to match a DNS query or an http request and then you can redirect with a set action set ip next-hop or set interface.
However, for HTTP there are specific protocols and feature to interact with WEB caches like WCCP that may provide even more flexibility.
Hope to help
Giuseppe