How can I use cloudfront to have images hosted by prismic come from my own domain? - caching

I am using prismic headless CMS which hosts images on its own cdn.
Images have a name that is not SEO friendly and they are hosted on an external domain.
Prismic does not offer a way to set up a custom domain for images.
Our website also uses cloudfront which caches pages.
Is there a way to parse html content and rewrite image urls so that they come from our own domain?
Thanks for your help !

Related

Serve joomla site on Amazon CDN

I want to set up the whole joomla site on CDN,
so that to increase the performance of our website.
How is it possible to put entire site on CDN?
You'll want to serve static (unchanging) assets like CSS and JavaScript from a CDN.
The dynamic pages (PHP) generated by a CMS are not good candidates for a CDN.
To setup a CDN, you'll host the website elsewhere (like you would normally).
Then, to fetch the assets, you'd create a pull zone that points to the folder where the assets live.
For example, if my site is http://example.com and my CSS/JS lives at http://example.com/static, I'd create a pull zone to grab the assets.
You can configure the CDN with a CNAME (subdomain) record so assets can be fetched from URLs like http://cdn.example.com/somefile.css.
You would then modify all references to static assets so that they're served by the CDN (using the http://cdn... URL.

Is wordpress supposed to automatically load images over https?

When I try to access my website over https, I get a mixed content error. Looking at the console, The offending resources are all images that are uploaded using the wordpress media uploader.
But isn't wordpress smart enough to know that it should serve those images over ssl if the https version of the website is requested? If not, is there an easy solution to resolve this issue (besides from editing every post to replace say http://example.com/image.jpg with //example.com/image.jpg)
Wordpress has a plugin that does this trick. Wordpress HTTPS(SSL)
It replaced all images loaded through "HTTP" with "HTTPS".

Magento: use subdomains as a CDN for media folder

We are planning to use subdomains ie.cdn1.example.com, cdn2.example.com to deliver product images.
How to configure Magento for this?
How to handle Magento cache folder which save auto-generated thumbnails as per template?
If you're using an origin pull CDN like AWS Cloudfront, you just fill in the information telling their system your web server name, they provide you with a server name (randomchars.cloudfront.net) on their end and then you use a CNAME record in your DNS to point their server name at your subdomain name like media.example.com.
Then your base media URL becomes http://media.example.com/media/ and everything's pretty much automatic from there.
Using origin pull gets rid of having to maintain a separate system to host your images and try to get Magento to upload to it, or figure out how to replicate Magento's media folder to it.

magento https links

Magento has in built functionality to use https for my account pages , login page and checkout pages. However, we're finding that only the images and script links are dynamically changing to https. All the page links are not changing in these secure area and have http links instead. We are using Magento 1.7
We're looking for a possible answer or some actual help here and are willing to pay for it.
Any suggestions?

Hosting wordpress Images in a sub-domain when my wordpress is installed in a subdomain

I have a gallery for my website (mysite.com) as a sub-domain (gallery.mysite.com) but I want to host my wordpress Images in another sub-domain (images.gallery.mysite.com) I have changes the "Full URL path to files" but wordpress is not uploading the images to the folder how can I fix this or are there any other solutions, because I wand to speed up the load time of my site.
Thanks
As I understand if, you want wordpress to upload the file into another location other than the default one. if this is the case, take a look at Editing the default image/file upload location of WordPress!

Resources