We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52064
    • 120 Posts
    Hello,
    MinifyX use to optimize CSS and JS

    I have the CSS as a resource, but if I SITE_STATUS Off
    can not read the file.

    There is the option to create a rule for SITE_STATUS authorizing locahost?

    thanks.

    This question has been answered by ferx77. See the first response.

      FerX - Developer at Eracom s.r.l.
    • discuss.answer
      • 52064
      • 120 Posts
      solved with this simple plugin

      event: OnHandleRequest

      if($_SERVER['REMOTE_ADDR']==$_SERVER['SERVER_ADDR']){
          $modx->config['site_status'] = '1';
      }
      
        FerX - Developer at Eracom s.r.l.