Thread Starter
sofuwa
(@sofuwa)
i send debug info with link to this page
Hello @sofuwa
Thanks for the debug information.
We have completed the investigation of your website environment, and here are our findings:
While your PHP environment is reported as Apache, your website pages and images are actually being served directly by Nginx. In this specific architecture, image requests bypass Apache entirely. As a result, the rewrite rules CompressX uses for WebP/AVIF delivery are not applied to those requests.
This is why the rewrites are not taking effect—it is not an error in the rules, but rather a matter of the requests not reaching the Apache layer.
To resolve it, we suggest the following two options:
Option 1: Add the WebP/AVIF rewrite rules directly into the Nginx configuration. This will achieve the same seamless results as the .htaccess method. You can follow this documentation to configure Nginx.
Option 2: Navigate to the plugin Settings > Browser Compatibility and select “Use Picture Tag.” This method does not rely on server rewrites and should work correctly in your server environment.
All the best,
Thread Starter
sofuwa
(@sofuwa)
My hosting doesn’t allow me to change ngnix settings. I don’t have this setting, is this only for the paid version? Settings > Browser Compatibility >Use Picture Tag
-
This reply was modified 2 weeks, 5 days ago by
sofuwa.
-
This reply was modified 2 weeks, 5 days ago by
sofuwa.
Hello @sofuwa
This is a basic feature and is available in the free version of the plugin. Please refer to this screenshot to locate the specific option.
All the best,
Hello. Please enable the ‘Use Picture tag’ option under CompressX > Image optimization > General settings > Browser compatibility, and then click Save changes as shown in the attached image.
Screenshot by Lightshot
Hello,
Since the issue has been fixed, I’m going to mark this thread as resolved. Please don’t hesitate to reach out if you need help with anything else!
Kind regards.