WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP Retina 2x] .htaccess generated with incorrect RewriteRule

[Resolved] [Plugin: WP Retina 2x] .htaccess generated with incorrect RewriteRule

  • docwhat

    @docwhat

    wp-retina-2x version 0.4

    The .htaccess file that is generated is:

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

    It seems that the str_replace( get_home_url(), ...) in wp2x_settings.php is not doing the “right” thing. Since I’m using FORCE_SSL_ADMIN.

    I *think* the right solution is: $handlerurl = str_replace( trailingslashit(site_url()), '', plugins_url( 'wr2x_image.php', __FILE__ ) );

    Ciao!

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

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    @tigroumeow

    Hello docwhat,

    You right, this is better and it works well. I will include this in the next update 🙂 Thanks a lot for your debugging and help 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: WP Retina 2x] .htaccess generated with incorrect RewriteRule’ is closed to new replies.