pixelcrook
Forum Replies Created
-
Forum: Plugins
In reply to: [WebP Express] nginx rewrite rulesSo, I finally got it to work. Don’t know what went wrong the first time.
I used the same config as you except i switched the standard directories to Bedrocks. like this:if ($http_accept ~* “webp”){
rewrite ^/(.*).(jpe?g|png)$ /app/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=app break;
}Wrote up on it in a quick blog post as well.
Thank you so much for this plugin!
@roselldk, no, I rote the whole thing based on your post, just because i know that chars would change copy/pasting between programs. The modification was just because i forgot to check i wanted email confirmations. 🙂
Will continue to work with this on my end, and will tell you if I make any progress.
Thank you!
Thank you for all the hard work.
Still no go for me in my bedrock installation. Nginx v1.1
Tried this:
if ($http_accept ~* “webp”){
rewrite ^/(.*).(jpe?g|png)$ /app/plugins/webp-express/wod/webp-on-demand.php?source=$request_filename&wp-content=app break;
}- This reply was modified 7 years, 5 months ago by pixelcrook.
Forum: Plugins
In reply to: [WebP Express] nginx rewrite rulesI cant get it to work either.
Im on a bedrock/nginx setup (it works no problem with bedrock/apache, so bedrock shouldnt be the problem).
These rules seems logical:
if ($http_accept ~* “webp”) {
rewrite ^/(.*).(jpeg|jpg)$ /app/plugins/webp-express/wod/webp-on-demand.php?source=$document_root$request_uri&wp-content=app&%1 break;
}- This reply was modified 7 years, 5 months ago by pixelcrook.