Cloudfront Custom Domain Name with bucket prefix

I am using a custom domain name like custom.domain.com and this is mapped to a cloudfront Distribution domain name, like https://u238desdpdw3thxcrp.cloudfront.net/bucket-prefix so that …

https://u238desdpdw3thxcrp.cloudfront.net/bucket-prefix/image.png can be found at custom.domain.com/image.png

But using a custom domain name and bucket prefix in WP Offload Settings rewrites the image url tohttps://custom.domain.com/bucket-prefix/image.png, custom.domain.com/image.png would be correct.

And thats a wrong url. Any idea how to get this fixed? Thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer