CSS url's not working with SSL?

Permalink
Hi,
I installed an SSL cert on my site, and it is working properly. However, when I load a page of my concrete5 site, I get the "page contains unauthenticated content" warning on firefox, or the "this page contains secure and non-secure items" warning in IE.
I looked at the page source and it turns out that some images being referenced by my stylesheet are using http:// instead of https://
The problem is that in the actual css file, I have relative links to these images (I am not specifying http:// or https://) -- so I assume concrete5 is rewriting these on the fly. I have cleared and disabled the c5 cache, and cleared my browser cache, but it is still exhibiting this behavior.
Is there some kind of switch to turn this behavior off, or do I need to hack into the base code? (And if so, perhaps someone could point me in the right direction as to where that rewriting is handled?)

Thanks!

-Jordan Lev

jordanlev
 
synlag replied on at Permalink Reply
synlag
use http.conf and redirect all http requests to https-> see apacha2 docs
jordanlev replied on at Permalink Reply
jordanlev
For future reference: it looks like there is another way to achieve this (in addition to synlag's idea of using apache mod_rewrite or httpd.com):

See brianm's comment titled "Resolved (by removing concrete5 calls)" in this thread:
http://www.concrete5.org/community/forums/customizing_c5/appending-...

What he suggests is not using getStyleSheet() or getThemePath() to reference the stylesheet in your template (you would just use a relative path to the css file like any other non-concrete5 site).