I have a domain http://services.mydomain.com
which has a secure login through a secure central provider (https://secure.mydomain.com
) on a different server with proxypass. When I go to the login page I am redirected to https://secure.mydomain.com/services
. The application page is rendered fine but I get a 404 for all of the .css
and .js
files, as it is looking for https://secure.mydomain.com/services/style.css
. The stylesheet is located at http://services.mydomain.com/style.css
I have managed to redirect the urls via apache rewrites but they now render as unsecure items on a secure page.
Here is the rewrite rule I have used:
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png|css|js|swf)$
RewriteRule ^/(.*)$ http://services.mydomain.com/style.css
Is there a way to redirect to these files through a secure url?