← Back
Editing: .htaccess
# BEGIN GD_cORe # The directives (lines) between "BEGIN GD_cORe" and "END GD_cORe" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/disable_smush_webp !-f RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/$1.webp -f RewriteRule wp-content/uploads/(.*.(?:png|jpe?g))$ wp-content/smush-webp/$1.webp [NC,T=image/webp] </IfModule> <IfModule mod_headers.c> Header append Vary Accept env=WEBP_image </IfModule> <IfModule mod_mime.c> AddType image/webp .webp </IfModule> # END GD_cORe
Save File
Cancel