I have the following 2 directives inside an .htaccess file (shared hosting account). I can't use server level configuration options. I cannot use ProxyPassReverse in .htaccess.
RewriteCond %{HTTP_HOST} ^www\.dummysite\.org$
RewriteRule ^blue$ "https://www.example.org/" [P,L]
When I try to access http://www.dummysite.org/blue, I get a 404. When I switch the target to http instead of https, i.e. https://www.example.org/, the proxy works very well and I can see the page at http://www.example.org.
How can I make this work with https://www.example.org/ (https)?