imagify-plugin icon indicating copy to clipboard operation
imagify-plugin copied to clipboard

Detect Nginx/Apache for WebP rewrite rule

Open jbma opened this issue 5 years ago • 4 comments

When using Nginx, you can select Rewrite Rule, without any warning or information to display WebP. I've seen multiple cases where users (using Nginx) had enabled this option and don't understand why it's not working.

A few random ideas :

  • Adding information about Nginx under the options
  • Provide the Nginx Rule when detecting Nginx

jbma avatar Jul 05 '19 06:07 jbma

This should be the case. Are you sure nothing is displaying on the settings page? Maybe it is not visible enough. https://github.com/wp-media/imagify-plugin/blob/master/classes/Webp/RewriteRules/Display.php#L127-L150

Screenfeed avatar Jul 05 '19 13:07 Screenfeed

When there is NGINX server, nothing is visible when the Rewrite rules option is chosen.

I am preparing a documentation post as a guide, but would be great to have detection under the plugin settings as well.

markonikolic985 avatar Jul 16 '19 07:07 markonikolic985

@markonikolic985 This is what you should have with nginx:

Settings

And when the conf file can't be created:

Settings

Can you double check and confirm you don't have these please?

Screenfeed avatar Jul 16 '19 12:07 Screenfeed

FYI on Flywheel managed WordPress host, which uses NGINX; the conf rules do NOT display at all. Imagify does not seem to detect NGINX.

thomasbacon avatar Jul 08 '20 16:07 thomasbacon