Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Out of the box this is not supported but a hook can be added to make this possible. Are you wanting the after URL (e.g. https://cdn.com/img/dl.dropbox.com/1.png) to use the CDN hostname defined in the plugin settings or something different?

    • This reply was modified 3 years, 1 month ago by Anonymous User 16850768. Reason: clarity

    Yes yes, I have some external image urls on my site that I want to rewrite to the cdn url.

    external url- dl.dropbox.com

    What I want – cdn.example.com/img/dl.dropbox.com

    Anonymous User 16850768

    (@anonymized-16850768)

    Thanks for the clarification. In case you ever need it in the future, the cdn_enabler_site_hostnames can be used to tell the CDN Enabler what hostname value(s) to replace with your CDN hostname. This would be the done if you didn’t need to modify the file path (e.g. cdn.example.com/dl.dropbox.com instead of cdn.example.com/img/dl.dropbox.com).

    If you want to modify the file path in addition to the hostname then using the cdn_enabler_contents_after_rewrite filter would be best right now (similar to your previous support thread), for example: https://pastebin.com/DH9PuvzT

    Thanks for the help. Again.

    Anonymous User 16850768

    (@anonymized-16850768)

    You’re welcome! Happy to have been able to help. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Serving external images using cdn’ is closed to new replies.