• Resolved syaho

    (@syaho)


    # HTTPS forced by SG-Optimizer
    <IfModule mod_rewrite.c>
        RewriteEngine On
        
        RewriteCond %{HTTP:X-Forwarded-Proto} !https
        RewriteCond %{HTTPS} off
        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END HTTPS

    This is the code that is in my .htaccess. The moment I remove these lines, my Javascript filter on my website starts working (again). When I add them back, Javascript is broken (GET function to filter results on my page).

    Is there a workaround for this? Do I have to enable this within the plugin? Isn’t SSL alone enough?

Viewing 1 replies (of 1 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Make sure you’re enqueuing your scripts properly and through https://. You have insecure resources which fail to load, that’s why when SSL connection is forced your scripts fail to load.

Viewing 1 replies (of 1 total)
  • The topic ‘Siteground Optimizer causing Javascript not to work’ is closed to new replies.