Plugin not cleaning up mods to .htaccess after deleting.
-
Hi,
It appears that the code that the plugin places in the .htaccess file is not removed after deleting the plugin.
Best Regards
# BEGIN WebP Converter
<IfModule mod_mime.c>
AddType image/webp .webp
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/$1/uploads-webpc/$2.jpg.webp -f
RewriteRule (.+)/uploads/(.+)\.jpg$ $1/uploads-webpc/$2.jpg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/$1/uploads-webpc/$2.jpeg.webp -f
RewriteRule (.+)/uploads/(.+)\.jpeg$ $1/uploads-webpc/$2.jpeg.webp [T=image/webp]
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{DOCUMENT_ROOT}/$1/uploads-webpc/$2.png.webp -f
RewriteRule (.+)/uploads/(.+)\.png$ $1/uploads-webpc/$2.png.webp [T=image/webp]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/webp “access plus 1 year”
</IfModule>
# END WebP Converter
- The topic ‘Plugin not cleaning up mods to .htaccess after deleting.’ is closed to new replies.