• unca-joe

    (@unca-joe)


    I wanted to use a CNAME address for my S3 urls and found a simple solution. First I created a bucket named images.MyDomain.com then added the CNAME images through DNS and pointed it to that bucket, images.MyDomain.com.s3.amazonaws.com.

    Now all uploaded images urls would be available in the https://images.MyDomain.com/2010/10/image.png format.

    To get the plugin to utilize the new url format I changed Line 215 in wp-s3/s3.php from

    $cdnUrl = "https://{$this->s3BucketName}.s3.amazonaws.com/" . $mediaInfo [ 'path' ];

    to

    $cdnUrl = "https://{$this->s3BucketName}/" . $mediaInfo [ 'path' ];

    and all works as desired.

    It would be nice to have an option in the admin area to accomplish this but this hack will work for now.

    https://www.ads-software.com/extend/plugins/wp-s3/

  • The topic ‘[Plugin: WordPress Amazon S3 Plugin] Ability to use CNAME for files’ is closed to new replies.