Hello everyone,
I have a website that has a lot of images and style sheets. Unfortunately I cannot give them relative paths in my HTML, only static paths because they are hosted on a separate server (that I control).
The problem I'm having is that on one page (credit card input) I have setup an SSL connection, however all images and css files are handled over HTTP and thus the browser doesn't like that and displays errors. My question is how (if possible) could I use mod_rewrite to tell the server to serve all images, css files, and javascript files over an SSL connection if (and only if) the user happens to be on the credit card page (so even if I request an image from http://www.example.com/images/1.jpg the server would send it over an SSL connection).
I have access to both servers, and both servers have an SSL certificate. Any ideas, or suggestions?