and must return
OK [status] url="newurl"
for a URL that needs to be redirected.
One would expect that ERR is used for an error, not for something
that is the opposite of an error.
The error is that the re-writer could not or would not re-write the URL.
You can return OK without the url=, status= or rewrite-url= keys.
url= is only required *if* the URL is being redirected.
rewrite-url= is only required *if* the URL is being rewritten.
Thanks for the explanation. This means that the information on
http://www.squid-cache.org/Versions/v3/3.4/cfgman/url_rewrite_program.html
is not correct since url= and rewrite-url are not optional.
I suggest to update this page to include that the result
"OK"
is meant for "no URL modification / PASS".
Thanks
Marcus