WordPress.org

Ready to get started?Download WordPress

Forums

WP Retina 2x
[resolved] .htaccess generated with incorrect RewriteRule (2 posts)

  1. docwhat
    Member
    Posted 1 year ago #

    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/

  2. Jordy Meow
    Member
    Plugin Author

    Posted 1 year ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic