Plugin not working on Nginx
-
I have a wordpress installation on Ubuntu with nginx. I added the rewrite rule you have under the FAQ section to the bottom of my nginx.conf file in the root of the wordpress installation. When I do a test with GD it works but when testing with the URL (on chrome)
wp-content/plugins/webp-express/test/test.jpg?debug&time=1546830186
I’m seeing an image and the doc type is “document”. Is there anything else I may need to setup with nginx? I use W3 Total Cache as well and the rewrite urls in the nginx.conf seem to be working fine with that as the plugin is working as it should.
This is the bottom of my nginx.conf file:
if ($http_accept ~* "webp"){ rewrite ^/(.*).(jpe?g|png)$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=wp-content break; }
The page I need help with: [log in to see the link]
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Plugin not working on Nginx’ is closed to new replies.