More control of rewrite URL option
-
This is an awesome plugin. Thank you!
I have a minor problem. I am happy to solve it myself, I just need to be pointed in the right direction.
I upload hundreds of photos to my WP blog, and WP-Offload-S3 uploads it to my PHOTOS bucket on S3, then it becomes visible via my CDN subdomain, delivered really quickly to my users.
BUT sometimes I don’t want images to be cached via Cloudfront – because of the cost. Sometimes I publish an animated GIF which might be several MB in size. View that a few thousand times and I have to pay for several GB of Cloudfront bandwidth. Multiply that by a few dozen GIF’s and the cost mounts up.
For these GIF’s I’d like to be able to change the IMG SRC from CDN.MyDomain.com to PHOTOS.MyDomain.com and have that URL remain as is – rather than have WP-Offload-S3 change it for me.
In my situation, the simplest way would be to edit the code somewhere to specify a condition like:
IF File Extension == “GIF” THEN
DO NOT REWRITE URL
ELSE
REWRITE URLWhere would I make this change?
Is there a better way of achieving this?I’d rather not maintain a separate S3 bucket, if possible. Otherwise I’d have to upload the GIF’s to S3 directly, bypassing the WP Media Library, which is not ideal.
Thanks in advance for your help.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.