seojagaban
Forum Replies Created
-
Thanks
WOW! This is awesome. Thank you very much. I am super glad and happy right now and you have no idea.
You are a wizard (I meant that in a good way).
Thank you for creating time to solve this problem for me. I really appreciate your help.
May God replenish you.
Thank you for responding. But, I don’t really understand all that you have said.
Please, can you check out the .htaccess for me, so you can make more input?
These are the codes below:# BEGIN WebP Express # The rules below are a result of the WebP Express options, WordPress configuration and the following .htaccess capability tests: # - mod_header working?: yes # - pass variable from .htaccess to script through header working?: yes # - pass variable from .htaccess to script through environment variable working?: yes <IfModule mod_rewrite.c> RewriteEngine On # Redirect to existing converted image in cache-dir (if browser supports webp) RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/webp-express/webp-images/doc-root/wp-content/$1.$2.webp -f RewriteRule ^/?(.+)\.(jpe?g|png)$ /wp-content/webp-express/webp-images/doc-root/wp-content/$1.$2.webp [NC,T=image/webp,E=EXISTING:1,L] # Make sure that browsers which does not support webp also gets the Vary:Accept header # when requesting images that would be redirected to existing webp on browsers that does. <IfModule mod_setenvif.c> SetEnvIf Request_URI "\.(jpe?g|png)$" ADDVARY </IfModule> # WebP Realizer: Redirect non-existing webp images to webp-realizer.php, which will locate corresponding jpg/png, convert it, and deliver the webp (if possible) RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?(.+)\.(webp)$ /wp-content/plugins/webp-express/wod/webp-realizer.php [E=DESTINATIONREL:wp-content/$0,E=WPCONTENT:wp-content,NC,L] # Redirect images to webp-on-demand.php (if browser supports webp) RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{QUERY_STRING} (.*) RewriteRule ^/?(.+)\.(jpe?g|png)$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?%1 [E=REQFN:%{REQUEST_FILENAME},E=WPCONTENT:wp-content,NC,L] <IfModule mod_headers.c> <IfModule mod_setenvif.c> # Apache appends "REDIRECT_" in front of the environment variables defined in mod_rewrite, but LiteSpeed does not. # So, the next lines are for Apache, in order to set environment variables without "REDIRECT_" SetEnvIf REDIRECT_EXISTING 1 EXISTING=1 SetEnvIf REDIRECT_ADDVARY 1 ADDVARY=1 # Set Vary:Accept header for the image types handled by WebP Express. # The purpose is to make proxies and CDNs aware that the response varies with the Accept header. Header append "Vary" "Accept" env=ADDVARY # Set X-WebP-Express header for diagnose purposes Header set "X-WebP-Express" "Redirected directly to existing webp" env=EXISTING </IfModule> </IfModule> </IfModule> <IfModule mod_mime.c> AddType image/webp .webp </IfModule> # END WebP ExpressThank you!
I already did both. Same result.
Surprisingly, the images seem to be showing when I tried it with Microsoft Edge browser, but the problem still persists with Chrome (desktop and mobile). Which browser did you use?
I hope you saw the part where I mentioned that new images I uploaded are being affected too even though I have deleted the plugin.
Thanks for replying.
I already tried all this but it did not work at all.