The rules contained illegal character “
Also, $request_uri contains the querystring, which leads to trouble when a querystring is passed.
And also, %1 doesn’t seem to do anything in Nginx. I removed it. In the Apache rules, it was there to pass the original query string on. But it seems the querystring is available in $_GET without any trickery
Use these rules with 0.8.0:
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;
}
Use these rules with 0.7.0:
if ($http_accept ~* "webp"){
rewrite ^/(.*).(jpe?g|png)$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?source=$request_filename&wp-content=wp-content break;
}
-
This reply was modified 6 years, 3 months ago by
rosell.dk.
-
This reply was modified 6 years, 3 months ago by
rosell.dk.