imagify-plugin
imagify-plugin copied to clipboard
Detect Nginx/Apache for WebP rewrite rule
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
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
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 This is what you should have with nginx:
And when the conf file can't be created:
Can you double check and confirm you don't have these please?
FYI on Flywheel managed WordPress host, which uses NGINX; the conf rules do NOT display at all. Imagify does not seem to detect NGINX.