my client using amazon store images magento store. problem in checkout onepage browser says ssl not secure becouse resources loaded via http.
how can load images contains url: http://[username].s3.amazonaws.com/...etc via https, like: https://[username].s3.amazonaws.com/...etc
here tried , think i'm close i'm redirect in browser
rewritecond %{http_host} !^https://absolutetoner.s3.amazonaws.com$ [nc] rewriterule ^(.*)$ https://absolutetoner.s3.amazonaws.com/$1 [l,r=301] it should simple i'm stuck.
thanks much.
no, it's not simple, and, in fact, it's not possible. need fix links in web page use https.
it's not possible 1 of several reasons. reason applies depend on why think work.
if expect these rules rewrite html of pages, that's not do. rewrite incoming requests, isn't helpful, because...
the web server never sees these requests. putting these rules in .htaccess file on web server serves no purpose, because these requests never reach web server. hostname points them s3, , that's requests browser go. web server never see these requests, can't redirect them...
even if requests reach web server, doesn't security warning, because web page still has links insecure content. if redirect http https did happen, information being sent in clear during initial insecure request, https redirection not address underlying problem...
or, if you're putting .htaccess file on s3 itself, of course have no effect, because s3 not support .htaccess.
in day , age, there's no reason not use ssl default everything... alternative that, if reason don't want or "can't," use // in links instead of http://. causes links fetched same scheme (http or https) 1 used load main page. example:
<img src="//example.s3.amazonaws.com/img.jpg">
Comments
Post a Comment