• Resolved iapprentice

    (@iapprentice)


    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

Viewing 1 replies (of 1 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @iapprentice,

    Thank you for your message. The content of the .htaccess file is generated automatically. When you remove the plugin, this code will not be in the .htaccess file.

    Go to the admin panel and follow these steps:
    Settings -> Permalinks -> click Save Changes

    This will allow you to regenerate the .htaccess file. Let me know if it helped you?

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin not cleaning up mods to .htaccess after deleting.’ is closed to new replies.