WP Retina 2x
Great, but needs a little update (4 posts)

  1. h4ir9
    Posted 2 years ago #

    Works like a charm.

    However, when using the server-side method, non-image uploads (like PDF documents) are broken.
    I had to edit the regex in the rewrite rule as follows:
    RewriteRule ^files/(.+.(?:jpe?g|gif|png)) wp-content/plugins/wp-retina-2x/wr2x_image.php?ms=true&file=$1 [L]
    Now it only applies to image files.
    Would be great if this was included in a future update!

  2. Jordy Meow
    Plugin Author

    Posted 2 years ago #

    Hey h4ir9,

    I can't have 'files' in the regexp but I could write the following instead:

    Would that work for you? But would you mind explaining the difference with the previous one? That is:

    Thanks, for sure I will include it in the next update :)

  3. h4ir9
    Posted 2 years ago #

    That solution should work as well.
    However, the plugin gives me the message

    You must edit your .htaccess manually and add 'RewriteRule ^files/(.+) wp-content/plugins/wp-retina-2x/wr2x_image.php?ms=true&file=$1 [L]' as the first RewriteRule if you want the server-side to work.

    … and that breaks non-image files. (I have a multisite installation)

  4. Jordy Meow
    Plugin Author

    Posted 2 years ago #

    Oh, I understand now, you were talking about this message! :) It will be updated in the next release :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Retina 2x
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.