Support » Plugin: WP Performance Pack » 404 Not Found

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bjoern

    (@greencp)

    It seems you are using NGINX. You have to integrate WPPPs rewrite rules into your NGINX configuration for dynamic images to work.

    Here are the apache mod rewrite rules:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)-([0-9]+)x([0-9]+)?\.((?i)jpeg|jpg|png|gif) /blogname/wp-content/plugins/wp-performance-pack/modules/dynamic_images/serve-dynamic-images.php [QSA,L]

    I don’t know much about NGINX configuration, so I can’t help you translating those rules to NGINX.

    • This reply was modified 3 years, 10 months ago by Bjoern.
    Thread Starter zstran95

    (@zstran95)

    When the conversion is complete I get an error : File not found.

    🙁

    Plugin Author Bjoern

    (@greencp)

    You have to adjust the rewrite to your own blog:

    RewriteRule ^(.*)-([0-9]+)x([0-9]+)?\.((?i)jpeg|jpg|png|gif) /blogname/wp-content/plugins/wp-performance-pack/modules/dynamic_images/serve-dynamic-images.php [QSA,L]

    Replace (or delete) blogname according to your WordPress installation.

    Thread Starter zstran95

    (@zstran95)

    Thread Starter zstran95

    (@zstran95)

    2017/07/16 18:09:08 [error] 12115#12115: *1 open() “/home/hanoipiercing.vn/public_html/wp-content/uploads/2017/07/BlackWhite-Chain-Helix-jewellery-433×433.jpg” failed (2: No such file or directory), client: 1.52.96.231, server: hanoipiercing.vn, request: “GET /wp-content/uploads/2017/07/BlackWhite-Chain-Helix-jewellery-433×433.jpg HTTP/2.0”, host: “hanoipiercing.vn”

    • This reply was modified 3 years, 10 months ago by zstran95.
    Plugin Author Bjoern

    (@greencp)

    The redirect to serve-dynamic-images.php doesn’t seem to work. WPPP would’t try to open the intermediate image. So this seems to be an NGINX error. Also WPPPs error output should be different if it doesn’t find the image.

    The redirect should be the first of all redirects. It tests if the requested image exists and if it doesn’t, it redirects to WPPPs server-dynamic-images.php.

    Thread Starter zstran95

    (@zstran95)

    Thank you so much for the help may be the plugin does not work well with Nginx

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 Not Found’ is closed to new replies.