How to make Apache to rewite correctly with SSL

Well…A strange issue. It is NOT enough just to enable RewriteEngine for correctly rewrite/redirect with SSL in Apache. While I checked the rules, in HTTP, the pattern and its substitution are functional. But in HTTPS, the pattern is malfunctioned. The solution is to enable the SSLProxyEngine for Apache. After that, there are at least THREE main module options in my HTTPS configure:

SSLEngine  On
SSLProxyEngine  On
RewriteEngine  On

If you have the same problem in HTTPS, trying it. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *