rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
222 stars 63 forks source link

webp-on-demand .htaccess rules should only apply on selected image types #520

Closed rosell-dk closed 2 years ago

rosell-dk commented 2 years ago

The rules needs a line like this: RewriteCond %{REQUEST_FILENAME} (?i)(.*)(\.jpe?g|\.png)$

Otherwise any file (in the uploads or wp-content/themes folder) will be sent to webp-on-demand.php

rosell-dk commented 2 years ago

The following problem is probably due to this issue: https://wordpress.org/support/topic/problem-with-pdf-3/

rosell-dk commented 2 years ago

This fix in the commit above doesn't regenerate .htaccess rules, which is needed. I should force regeneration on update on systems which has "Enable redirection to converter?" enabled...