WordPress.org

Ready to get started?Download WordPress

Forums

Any idea how to do this? (3 posts)

  1. jshare
    Member
    Posted 2 years ago #

    If an image on my blog goes viral on social media, many people will view it on its own in their browser while I pay CDN bills.

    Instead, what I'd like is for WordPress or nginx to recognize that a user only wants to see a specific non-theme image (i.e. a direct url to an image in /images/), and instead of serving the image directly, it would dynamically serve a template featuring the image.

    This way, I at least have a chance of retaining some of those image-wanting visitors on my blog.

    Is there a plugin that does this, or do I need some htaccess rewrite magic?

    Thanks for any help

    Jacob

  2. .htaccess would be that one.

  3. jshare
    Member
    Posted 2 years ago #

    Thanks. Any idea to what WordPress url I would need to redirect it?

    Would I need to create a custom WordPress template?

Topic Closed

This topic has been closed to new replies.

About this Topic