Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm using the Privoxy proxy on my PC.

What is the rewrite rule in the user.action file to rewrite e.g.: to Note that I want to rewrite, not redirect.

So if I search google for then on the search page there would be

Would the rewrite work on e.g.:

Or is redirecting better because there could be e.g.: <img src=""></img>?

share|improve this question
You may also want to consider (instead) using this on your clients: – mattdm Mar 14 '11 at 19:10

1 Answer 1

up vote 3 down vote accepted

The reason why you need to redirect that URL rather than rewrite is because you are visiting an unencrypted web page with the http:// (plaintext) URL, and the proxy needs to tell the browser to talk to the https:// URL. If the connection was simply redirected at the SSL port, your browser wouldn't know what to do with an SSL response if it were somehow directed to the secure port using the HTTP protocol. (Sadly, I'm not sure if anyone uses http-starttls, which should be able to handle that, but that's a separate question)

By using a redirect, the proxy uses HTTP return codes to tell the browser to open a new connection, using HTTPS instead of HTTP.

share|improve this answer
So the safest method would be the redirect: ? [in the user.action] ok! Thank you!! – LanceBaynes Mar 15 '11 at 10:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.