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.
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.
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
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?
Yes, please contact them.
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 🙁
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?
You’re not planning on helping me anymore? Answer me, I’ll turn off the accesses then.
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?
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.
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.
@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.
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?
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 (