• Resolved sofuwa

    (@sofuwa)


    when I enable the plugin I get this error .

    .htaccess rewrite rules – we’ve detected that .htaccess write rules are not executed on your Apache server, this can be because the server is not configured correctly for using .htaccess file from custom locations. For more details, please read this doc – How-to: Config Apache htaccess Rules

    AllowOverride All is enabled.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter sofuwa

    (@sofuwa)

    i send debug info with link to this page

    Plugin Support johnghiz

    (@johnghiz)

    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, 6 days ago by sofuwa.
    • This reply was modified 2 weeks, 6 days ago by sofuwa.
    Plugin Support johnghiz

    (@johnghiz)

    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,

    Thread Starter sofuwa

    (@sofuwa)

    screenshots

    Plugin Support johnghiz

    (@johnghiz)

    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

    Thread Starter sofuwa

    (@sofuwa)

    it worked, thank you

    Plugin Support johnghiz

    (@johnghiz)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.