I'm using java and apache and I'm hosting non secure 3rd party content on my secure page and when I share my page on facebook, facebooks tab doesn't display the insecure content. I ran across an article that describes this behavior and I'm looking to correct the issue. https://www.tabsite.com/blog/chrome-and-other-browsers-not-showing-insecure-content/
Since my content providers are not providing secure content, my thought was to use apache to proxy my secure URL to the third parties non secure URL.
How would I go about making my proxy dynamic so that I wouldn't have to consistently modify my server image? My initial thought was to prepend the 3rd party URL with my domain
https://images.example.com?url=http://content-provider.com/image/1234.jpg
and parse it with apache rewrite or something, however I'm not sure that is an appropriate solution. I'm looking for some thoughts and suggestions.
How do I use mod_rewrite to rewrite the url to the query parameter?
I tried something writing the following code with no success
https://images.example.com?url=http://content-provider.com/image/1234.jpg
RewriteCond %{QUERY_STRING} ^url=(.*)$ [NC]
RewriteRule (.*)$ %1 [NC,L,R=301]
I was hoping for http://content-provider.com/image/1234.jpg