• Resolved screamson

    (@screamson)


    Hello. I apologize for asking you to waste your time on my problem.
    After installing the plugin, the browser console does not load webp images.
    The code for my .htaccess file:

    
    # BEGIN WordPress
    # Строки между <code>BEGIN WordPress</code> и <code>END WordPress</code> были созданы автоматически.
    # Они могут быть изменены только фильтрами WordPress.
    # Все изменения между этими отметками будут перезаписаны.
    
    # 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 /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    I’ve read all the previous topics where the problem is similar, but I haven’t found a solution.
    If possible, please check what the problem is.
    If you need access to hosting, I can provide it. But I don’t know how to do that on this forum.

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

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

    (@mateuszgbiorczyk)

    Hi @screamson,

    Thank you for your message. I will try to help you.

    Does your website have a testing environment where I can test it without any risk? In my profile you will find a link to my website and you will find an email address on it.

    Thread Starter screamson

    (@screamson)

    Thank you for the answer!
    I sent the login details and FTP.
    You can test the site in full, I can always roll back all changes.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you @screamson.

    I did the tests and you have some cache on the server. Examples are:

    1. I open the URL to the image and then causes an error in the .htaccess file. This means that when I visit the site I have an Error 500. However, the image file is loading all the time. This means that during that time the rules from the .htaccess file are not executed.

    2. I added a graphic file. Then I changed his name. I try to open it in a browser and it opens all the time, even though it isn’t on FTP. Example: https://i.imgur.com/R5nzYJq.jpg

    Thread Starter screamson

    (@screamson)

    Thank you very much!
    Please tell me I didn’t quite get it. What do I have to write to the hosting technical support to have them check it out?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Yes, please contact them.

    Thread Starter screamson

    (@screamson)

    Applied for support. It turns out that on my server was a module https://www.modpagespeed.com/, which cached .htaccess. It’s been disabled, caching’s gone.
    But still, webp doesn’t work 🙁

    Thread Starter screamson

    (@screamson)

    For my site I use a secure image processor https://github.com/syamilmj/Aqua-Resizer. It helps to use images of the right size in certain places. Could this be a problem?

    Thread Starter screamson

    (@screamson)

    You’re not planning on helping me anymore? Answer me, I’ll turn off the accesses then.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    I want and help you, but please understand that I take care of plugins in my free time. I do it with passion and this is my extra occupation. Give me time until next week, okay?

    Thread Starter screamson

    (@screamson)

    Yes, I’m sorry if the tone of my message seemed inappropriate. I’m translating it through an interpreter.
    I realize that you’re doing it on a volunteer basis, because you want to improve the quality of your plugin.
    All I wanted to know was whether to wait for help or not, nothing more.
    Thank you very much, I will wait as long as it takes. Excuse me again.

    norberto

    (@norbertonicolas)

    Mr Screamson, I don’t know how I can help, since I said that “Webp” has already been deleted, as soon as it started giving me problems, I found it convenient to “Delete”, I would like to know if this is being a problem for you, anyway i await your thought, thank you.

    Thread Starter screamson

    (@screamson)

    @norbertonicolas , I don’t understand you. What do you mean? I’m in a dialogue with the creator of the plugin on a topic that I created myself.
    Maybe you’ve got the wrong topic.

    Thread Starter screamson

    (@screamson)

    @mateuszgbiorczyk Any news?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thank you for your waiting time. I did some tests.

    I created two types of image files – one with a red background and the other with a green one. I threw them to the following locations (I created new directories to minimize the cache risk):
    – red /wp-content/directory-red/example.png
    – red /wp-content/directory-red/example.png2
    – green /wp-content/directory-green/example.png
    – green /wp-content/directory-green/example.png2

    I used this redirects in the /wp-content/.htaccess file:

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/wp-content/directory-green/$1 -f
      RewriteRule directory-red/(.+)$ directory-green/$1 [T=image/webp]
    </IfModule>

    The .htaccess file in the WP installation directory contains only the original WordPress redirects (I removed all others). The .htaccess file in the /wp-content/ directory contains only the rules listed above.

    By entering the URL: https://bdmgame.fun/wp-content/directory-red/000-example.png the redirection does not work (we see the red file all the time). But already for the file https://bdmgame.fun/wp-content/directory-red/000-example.png2 everything works fine (we see the green file).

    Redirection also does not work for the extensions .jpg,.jpeg and .gif. But it works for .jpg2,.jpeg2 and .gif2.

    I left the files on the server so that you can check it yourself. In my opinion, this is a server setting that overrides redirects for these formats. Could you check it?

    Thread Starter screamson

    (@screamson)

    They have removed the processing of these file extensions on the nginx side. This is now handled by the apache web server.
    But webp never showed up (

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘The plugin does not work for my site (another one)’ is closed to new replies.