• Resolved rfnd

    (@rfnd)


    Hi there our developers have implemented the required rules for our Nginx configuration that was provided by you. However the error is still showing up.

    What are the risks of using the Pass Thru (without rewrites in .htaccess files or the Nginx configuration) method?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @rfnd,

    Thank you for your message.

    The Pass Thru method offers worse performance and is not an optimal solution. If your developers have implemented rules in the Nginx configuration and you still see an error, it means they did not do it correctly. Please remember that you must complete all 4 steps described in the plugin FAQ. If you do this, everything will work properly.

    Best,
    Mateusz

    Thread Starter rfnd

    (@rfnd)

    Just to share with you, here is the requested rule update that was added to our Nginx configuration:? ??

    # BEGIN Converter for Media set $ext_avif “.avif”; if ($http_accept !~* “image/avif”) { ? ? set $ext_avif “”; }? set $ext_webp “.webp”; if ($http_accept !~* “image/webp”) { ? ? set $ext_webp “”; }? location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif|webp)$ { ? ? add_header Vary Accept; ? ? expires 365d; ? ? try_files ? ? ? ? /wp-content/uploads-webpc/$path.$ext$ext_avif ? ? ? ? /wp-content/uploads-webpc/$path.$ext$ext_webp ? ? ? ? $uri =404; } # END Converter for Media?? ?

    Comparing this to the?documentation you provided, we can see that it’s identical:?I can also attach the complete Nginx config file for you, to inspect, for some further insight, if so please let me know if you require it

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @rfnd What is important is in which file you added these rules, and in what order – i.e. what rules come before these rules and what rules come after these rules.

    Here is an example of what a properly added Nginx configuration looks like (this is an example Nginx configuration, but in most cases it looks similar).

    Also please see the “Configuration for Nginx Proxy” question in the plugin FAQ.

    Codes d’erreur?:?rewrites_cached not work plugin

    no code htaccess

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @faridgho Please tell me, did you read carefully the message you sent me in the screenshot?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error codes: rewrites_not_executed’ is closed to new replies.