• Resolved francois5001

    (@francois5001)


    Hi,

    altough the webp files are properly created, the server continues to xfer original jpg images.

    the php configuration has GD and Imagick enabled, I disabled all plugins able to alter image files, Regenerate ALL file, but seemingly I missed something, Chrome network-img stills swoing original jpg file

    Please help, thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @francois5001,

    Thank you for your message. Tell me please have you read the FAQ and other threads in the support forum?

    Always adding your thread, read plugin FAQ and other threads in support forum first. Perhaps someone had a similar problem and it has been resolved. This will save time repeating the same issues many times and solving the same problems.

    In one of the FAQ questions you have a description of what information should be provided so that I can help you. Thank you in advance!

    If you do not find anything and you still have a problem, then contact here. I will be happy to help you!

    Thread Starter francois5001

    (@francois5001)

    Hi Mateus,
    I have read many topics, the issue stills “not working”, but I can’t find any real solution for me.
    Please give me instructions on how to validate if the plugin is correctly configured. (a checklist would be nice)

    for the page:https://www.i-malo.com/t7/en/workshop/
    here is my JPG image path (2 first pictures):https://www.i-malo.com/t7/wp-content/uploads/2020/01/
    here is the WEBP image path (2 first pictures)
    https://www.i-malo.com/t7/wp-content/uploads-webpc/2020/01/
    the .htaccess:# BEGIN LSCACHE
    # END LSCACHE
    # BEGIN NON_LSCACHE
    # END NON_LSCACHE
    #This Apache config file was created by Duplicator Installer on 2019-10-26 13:46:51.
    #The original can be found in archived file with the name htaccess.orig

    # BEGIN WordPress
    # The directives (lines) between BEGIN WordPress and END WordPress are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.

    # BEGIN WebP Converter
    <IfModule mod_mime.c>
    ? AddType image/webp .webp
    </IfModule>
    <IfModule mod_rewrite.c>
    ? RewriteEngine On
    ? RewriteCond %{HTTP_ACCEPT} image/webp
    ? RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
    ? RewriteRule wp-content/uploads/(.+)\.jpg$ wp-content/uploads-webpc/$1.jpg.webp [T=image/webp]
    ? RewriteCond %{HTTP_ACCEPT} image/webp
    ? RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
    ? RewriteRule wp-content/uploads/(.+)\.jpeg$ wp-content/uploads-webpc/$1.jpeg.webp [T=image/webp]
    ? RewriteCond %{HTTP_ACCEPT} image/webp
    ? RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
    ? RewriteRule wp-content/uploads/(.+)\.png$ wp-content/uploads-webpc/$1.png.webp [T=image/webp]
    </IfModule>
    <IfModule mod_expires.c>
    ? ExpiresActive On
    ? ExpiresByType image/webp “access plus 1 year”
    </IfModule>
    # END WebP Converter

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /t7/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /t7/index.php [L]
    </IfModule>

    # END WordPress
    please see joined file for server info and active plugins
    I am on Windows 10, with Chrome and Firefox (they can read a webp file)

    Thanks for your help

    Fran?ois.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you so much for your time. You helped me a lot.

    The problem is that your server does not understand the rules stored in the .htaccess file. You use LiteSpeed, I tested it on Apache and Nginx.

    Can you contact your Administrator and ask why these rules do not work?

    Thread Starter francois5001

    (@francois5001)

    Hi Mateusz,

    you are correct, the server is configured to handle Litespeed but for the production site only, however my t7 dev site doesn’t use the Litespeed plugin, and no other caching manager is used.

    Is Litespeed server interferes with “WebP Converter for Media” plugin, even if t7 dev doesn’t use it ?

    For the test, I just enabled Litespeed plugin on t7 dev without any Media action, just the caching, unfortunately, the result is the same: Chrome stills see original JPG files.

    Thanks again.

    Fran?ois

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    You have converted images in the /wp-content/uploads-webpc directory, so the plugin works. All the rest I do the rules in the .htaccess file. They decide to replace the source of the file loaded from /wp-content/uploads/ to /wp-content/uploads-webpc/.

    In case of your server it doesn’t work, where on Apache there are no problems with it. It is hard to help me in this case, although I would love to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compressed webp images not used’ is closed to new replies.