WebP Ionos Apache2?
-
Hey, I copied this
RewriteEngine On # Does browser explicitly support webp? RewriteCond %{HTTP_USER_AGENT} Chrome [OR] # OR Is request from Page Speed RewriteCond %{HTTP_USER_AGENT} “Google Page Speed Insights” [OR] # OR does this browser explicitly support webp RewriteCond %{HTTP_ACCEPT} image/webp # AND NOT MS EDGE 42/17 – doesnt work. RewriteCond %{HTTP_USER_AGENT} !Edge/17 # AND is the request a jpg, png or gif? RewriteCond %{REQUEST_URI} ^(.+)\.(?:jpe?g|png|gif)$ # AND does a .ext.webp image exist? RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.webp -f # THEN send the webp image and set the env var webp RewriteRule ^(.+)$ $1.webp [NC,T=image/webp,E=webp,L] # If REDIRECT_webp env var exists, append Accept to the Vary header Header append Vary Accept env=REDIRECT_webp AddType image/webp .webp
into the .htacess. and cleared my cache, unfortunately webP does not work. What could be the reason? The site is at Ionos and the speed on the desktop is great, but not yet in the mobile view. Have a gerat day!
The page I need help with: [log in to see the link]
The topic ‘WebP Ionos Apache2?’ is closed to new replies.