Re: [squid-users] Re: passing request headers to url_rewrite program

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 17 Mar 2011 00:44:09 +1300

On 16/03/11 23:50, Deepak Rao wrote:
> Hi,
>
> I have a requirement where, based on a request header value
> (User-Agent), the url will be rewritten accordingly.
>
> Any idea on how to achieve this?

Not with re-writers. They take a URL and produce a new URL. That is
their purpose and entire capability.

If the logic is simple enough you could do it with a redirect instead.
deny_info bouncing to a new URL based on any ACL tests.It may need a
very recent Squid to get deny_info dynamic-URL tags.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.5
Received on Wed Mar 16 2011 - 11:44:13 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 16 2011 - 12:00:03 MDT