ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

settings so can access site via http AND https without warnings

August 29, 2012 10:46am

Subscribe [3]
  • #1 / Aug 29, 2012 10:46am

    Scott Hepler

    11 posts

    Greetings!

    We have a site we’re accessing via https, but get security warnings from IE because some assets are accessed insecurely (CSS and images referenced there, in this case).  This happens when the setting ‘General Config -> URL to the root directory of your site’ includes the http:// protocol identifier (With that field blank, set just to the site domain, or set without a protocol [//example.com/], we encounter other problems, so that’s not really an option).  The problematic URLs are, of course, those generated with {path=} in the templates.  Are there other options?

    Thanks,
    Scott

  • #2 / Aug 30, 2012 3:25pm

    Shane Eckert

    7174 posts

    Hey Scott,

    Thank you for posting your question here on the ExpressionEngine forums.

    Are these assets in the same secure domain? If they are not, I am not sure there is a way around it.

    Please let me know.

    Cheers,

  • #3 / Aug 30, 2012 5:04pm

    Scott Hepler

    11 posts

    Hi Shane:

    They’re in the same domain.

    tnx,
    -s.

  • #4 / Aug 31, 2012 1:25pm

    Shane Eckert

    7174 posts

    Hi Scott Hepler,

    I guess I am not understanding. How are the assets being accessed insecurely?

    Thank you,

  • #5 / Aug 31, 2012 3:36pm

    Scott Hepler

    11 posts

    Because we use {stylesheet=} in our templates, if we have the ‘URL to the root directory’ set to ‘http://example.com/’, the CSS and all assets it includes are fetched via plain http:, so IE complains.  If we set that to ‘/’, the Pages module complains when we edit entries.  If we set it to ‘//example.com’ (protocol-relative URL), EE gets, uh, confused about the base_url.

    Anyway, I’ve solved this with some handy help from Peter Lewis over on StackOverflow.  He pointed out a cool little extension:  http://devot-ee.com/add-ons/https-support , FYI.

    Have a great weekend, and thanks.

    -s.

  • #6 / Sep 04, 2012 1:57pm

    Dan Decker

    7338 posts

    Hey Scott!

    I’m glad to see you were able to find a solution!

    If you need anything else, please let us know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases