webp images not working after conversion
-
The “Google Authenticator QR Code” image is still loading in png version and not webp, after converting the image.
PNG: https://blog.scanova.io/blog/wp-content/uploads/2022/03/Google-Authenticator-qr-code-1-1-e1647436525495.png
webp: https://blog.scanova.io/blog/wp-content/uploads/2022/03/Google-Authenticator-qr-code-1-1-e1647436525495.webpThe image is accessible by replacing
png
withwebp
.I checked the .htaccess file and it has the following code added
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} (.+)\.(jpe?g|png|gif)$ RewriteCond %1\.webp -f RewriteCond %{QUERY_STRING} !type=original RewriteRule (.+)\.(jpe?g|png|gif)$ $1.webp [NC,T=image/webp,E=webp,L] </IfModule>
and the content of the
VirtualHost
is<Directory /var/www/qcg-blog> Require all granted AllowOverride all </Directory>
and the
rewrite
is enabled as well$ sudo a2enmod rewrite Module rewrite already enabled
- This topic was modified 2 years, 6 months ago by .
- This topic was modified 2 years, 6 months ago by .
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘webp images not working after conversion’ is closed to new replies.