Support » Plugin: Perfect Images (Manage Image Sizes, Thumbnails, Replace, Retina) » Invalid image URL results in non-standard 404 errors

  • Resolved Stanback

    (@stanback)


    I’ve noticed that when visiting an image URL that does not exist, the 404 error I receive from WP Retina 2x seems to only output the “not found” header rather than showing my WordPress page (which is what happens with the plugin deactivated).

    I’ve fixed this on my end by adding the following…

    RewriteCond %{REQUEST_FILENAME} -f

    Above the rewrite rule (in the WordPress .htaccess file)…

    RewriteRule ^.*\.(jpg|jpeg|gif|png|bmp) /wp-content/plugins/wp-retina-2x/wr2x_image.php [QSA,L]

    Is it possible/logical to incorporate this change in future versions? Thanks!

    http://wordpress.org/extend/plugins/wp-retina-2x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Stanback

    (@stanback)

    You could also change how the plugin’s code is handling the 404 error, but .htaccess was the simplest solution that didn’t involve modifying the plugin.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Jeremy is the creator of Retina-Images, which is actually used here for the Server-Side method. I sent him a link to this thread, hopefully he will have an exact idea on this, even though you must be right 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid image URL results in non-standard 404 errors’ is closed to new replies.