Forums

[Plugin: My CDN] Doesn't support images from the uploads folder? (2 posts)

  1. archon810
    Member
    Posted 2 years ago #

    I got this plugin mostly so that I can offload the images in my wp-content/uploads folder but it doesn't seem to do that.

    Doesn't it make sense? Can you add this feature?

    Thanks.

    http://wordpress.org/extend/plugins/my-cdn/

  2. stevenjm
    Member
    Posted 2 years ago #

    I have the same problem with the plugin, further to that I make use of wp-supercache and I cant simply re-write the lot of those folders.

    I have made the following change to cater for just the uploads

    From
    $regex = '#(?<=[\"\'])'.quotemeta($ossdl_off_blog_url).'(?:(/(?:wp\-content|wp\-includes)[^\"\']+)|(/[^/\"\']+))(?=[\"\'])#';'

    To
    $regex = '#(?<=[\"\'])'.quotemeta($ossdl_off_blog_url).'(?:(/wp-content/(?:uploads)[^\"\']+)|(/[^/\"\']+))(?=[\"\'])#';

    If someone knows how I can do a rewrite in .htaccess to just re-direct uploads/* please let me know the method for it

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags