We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47257
    • 9 Posts
    Hi,
    i am supporting a handful of MODX websites on diffenrent servers. I have lately, at least for a month, been experiencing problems with loading the stylesheets. I noticed that in the adressbar in the browser it says https(sometimes), but there are no SSL on these sites, and there have never been.

    Anyone else experiencing similar things? Any suggestions for solutions?

    One site is version 2.3.3-pl another site is version 2.5.6-pl

    Best regards Gitte
    • You have to look, why a page of your site is loaded by https:

      • Have you followed a link, that is using that protocol?
      • If yes, is there a base href tag on the linking MODX page that has uses the https protocol?
      • If yes, is the tag creating that protocol cached: <base href="[[++site_url]]" />
      • If yes, change it to uncached: <base href="[[!++site_url]]" />

      Reason: GoogleBot and other Bots crawling the site, try to reach a page with the https protocol. If the site answers those crawling requests and the crawled page was not cached before, the https protocol is cached in the [[++site_url]] tag and all relative links on that page use the https protocol.

      If thats not the cause of the issue, you have to search elsewhere. A solution could be, creating a htaccess rule that redirects https calls to http.
        • 3749
        • 24,544 Posts
        FYI, both Chrome and Firefox are pushing for SSL on any page that asks the user for information. If you have a contact form or a login form, they will warn users that the page is not secure.

        I mention this because if you're trying to solve an SSL problem, it might be a good time to either set those pages to https, or set the whole site that way (which is what MODX and Bob's Guides have done).

        As Jako suggests, make sure the base href tag in the head secton of all templates looks like this (with the exclamation point):

        <base href="[[!++site_url]]" />
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 47257
          • 9 Posts
          Thank you for your replys, setting the site_url uncached seemed to solve the problem.

          We are in process of setting up SSL on the page, theres no way around if you want your website to be taken serious smiley