Title: SG plugins | Optimiser and Security
Last modified: February 5, 2022

---

# SG plugins | Optimiser and Security

 *  Resolved [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/)
 * Hi, been trying to active the Image optimisation, just get a blank light grey
   screen after toggling. Doesn’t turn on.
 * Also Force HTTPS keeps failing.
 * This is on a non SG hosted website, as the ones I have on there work like a dream.
 * Is this a bug and waiting for an update as these SG plugins Optimiser and Security
   are quite new to wordpress websites, not on SG?
 * Thanks guys

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/page/2/?output_format=md)

 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331389)
 * Hello,
 * So far we haven’t received any feedback reports about issues with the Image Optimization
   process or not being able to force the HTTPS connection.
 * Make sure that you do not block/limit/disable the WordPress cron job as the optimization
   process requires it to work as intended. Take a look if you have any defines 
   in the wp-config.php file that set the website to work via HTTP:// as this will
   prevent the force HTTPS feature to work.
 * Best Regards,
    Simeon Boev
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331495)
 * checked all of that, all fine.
 * its like the page doesn’t load properly after I toggle of dynamic cache, or media
   image compression… the page just goes light grey. all loads back after a refresh.
 * Same goes for Force HTTPS.
 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331533)
 * It sounds like the plugin is not able to complete the requests. Could you provide
   a bit more information about the request/s that is generated once the image optimization/
   HTTPs enforcing features are enabled? The output of the script or any errors 
   generated by the request will be of great help.
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331574)
 * **This is what happens and showing settings.**
 * [https://share.getcloudapp.com/qGurYw16](https://share.getcloudapp.com/qGurYw16)
 * **this is at the top of my .htaccess in relation to SG plugins**
 *     ```
       # 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
       # SGS XMLRPC Disable Service
       <Files xmlrpc.php>
       	order deny,allow
       	deny from all
       </Files>
       # SGS XMLRPC Disable Service END
       # SGS XSS Header Service
       <IfModule mod_headers.c>
           # SGS XSS
            Header always set X-Content-Type-Options "nosniff"
            Header set X-XSS-Protection "1; mode=block"
           # SGS XSS END
       </IfModule>
       # SGS XSS Header Service END
   
       # SGS HSTS Header Service
           Header set Strict-Transport-Security "max-age=10886400; preload"
       # SGS HSTS Header Service END
       ```
   
 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331719)
 * Unfortunately, the screen recording is not accessible due to a view limit(This
   item has exceeded its view limit!). Could you provide the recording via an alternative
   provider/service?
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15331932)
 * [https://drive.google.com/drive/folders/1zzyL0Qh4RDOvNl6MufbHVkTJhb14vDL3?usp=sharing](https://drive.google.com/drive/folders/1zzyL0Qh4RDOvNl6MufbHVkTJhb14vDL3?usp=sharing)
 *  Plugin Support [Plamen M](https://wordpress.org/support/users/plamenm/)
 * (@plamenm)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15332205)
 * Hello [@pearsey](https://wordpress.org/support/users/pearsey/) ,
 * Try:
    – renaming the local php.ini file, if you have one; – check the wp-config.
   php file if there are any rules that prevent writing to files:
 * DISALLOW_FILE_EDIT
 * or similar variables. Best, temporarily replace the wp-config.php with the default
   one for WprdPress (copying the database connection details in it, of course);
   –
   Preserve a backup of your database. Then disable all plugins in your site except
   for the two: SiteGround Optimizer and SiteGround Security, then test if the functions
   would get enabled properly. If they do, re-enable the other plugins one by one
   and test enabling the functions after each enabled plugin;
 * Let us know if any of these steps helped.
 * Regards,
    Plamen.M SiteGround Tech Support Team
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15332384)
 * so the forced HTTPS is working, checked the .htaccess file, but the plugin doesn’t
   recognise its toggled on from the dashboard.
 *     ```
       # 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
       ```
   
 * SEE vid to confirm my findings. WP-config all clean and writable, checked with
   host.
 * [https://drive.google.com/drive/folders/1zzyL0Qh4RDOvNl6MufbHVkTJhb14vDL3?usp=sharing](https://drive.google.com/drive/folders/1zzyL0Qh4RDOvNl6MufbHVkTJhb14vDL3?usp=sharing)
 * not sure why the image optimisation wont activate too. seems to be a similar 
   related issue as that post a blank grey screen when selected too.
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15332402)
 * There are only 5 plugins on the site. Two are SG optimiser and security. Two 
   theme plugins, contact form and a portfolio plugin. YOAST SEO plugin.
 * Nothing complicated going on. Weird this has been so easy as my other sites hosted
   on Siteground.
 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15333961)
 * Hello [@pearsey](https://wordpress.org/support/users/pearsey/),
 * The issues you are experiencing seem to be caused by the host you are using. 
   They most probably block the plugin’s requests somehow because we have not managed
   to replicate this behavior on our servers.
 * Please contact their support so they can look into the issue as well.
 * Best Regards,
    Delyan Delov
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15333986)
 * **Really appreciate the time from you all.**
 * Is there anything clever I can say to TSO host which will help them identify 
   the problem?
 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15334018)
 * Nothing particularly, they should check if something is not blocking our plugin’s
   requests or preventing them from completing successfully.
 * Regards,
    Delyan Delov
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15334032)
 * top man. thanks Delyan.
 *  Plugin Support [Delyan Delov](https://wordpress.org/support/users/delyandelov/)
 * (@delyandelov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15334037)
 * You are most welcome!
 * I am now marking the topic as resolved but you can update it anytime if you need
   further assistance.
 * Regards,
    Delyan Delov
 *  Thread Starter [pearsey](https://wordpress.org/support/users/pearsey/)
 * (@pearsey)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/#post-15344250)
 * My host having looked over my WordPress database, checked .htaccess and config
   permissions said this:
 * I have checked the file permissions and everything is properly set. Unfortunately,
   the error message that you are getting doesn’t provide us with any information.
 * Would you like us to manually enable GZIP compression and HTTPS?
 * So I’m going in circles here. Your both saying it’s the other side.
 * ?!?!?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/page/2/?output_format=md)

The topic ‘SG plugins | Optimiser and Security’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 16 replies
 * 5 participants
 * Last reply from: [Dimo Dimov](https://wordpress.org/support/users/dimodi/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/sg-plugins-optimiser-and-security/page/2/#post-15344487)
 * Status: resolved