htaccess redirect secure URL, redirect old assets to Amazon S3, only for https

view story

http://serverfault.com – I have the following URL, I would like to redirect all css, images & javascript to my amazon s3 bucket. # I have these URL's (and more) https://secure.mydomain.co.uk/styles/donate/style.css https://secure.mydomain.co.uk/js/donate/jquery.min.js https://secure.mydomain.co.uk/images/donate/help-icon.png # I would like to redirect all CSS, JS & Image files to: https://s3-eu-west-1.amazonaws.com/mydomain.co.uk/static/$1 # So the URLs should be https://s3-eu-west-1.amazonaws.com/mydomain.co.uk/static/styles/donate/s... https://s3-eu-west-1.amazonaws.com/mydomain.co.uk/static/js/donat (HowTos)