Hello. My name is Michel and i've installed Magento 1.9 and i'm trying to setup CDN on Magento backend in System/Configuration/Web/unsecure and secure tabs. First i created a subdomain on Cpanel that call https://cdn.mysite.com.br, then i setup this subdomain on CloudFlare like image below:
After i set it up this subdomain on Cloudflare, i inserted the https://cdn.mysite.com.br subdomain on both tabs unsecure/secure like image below:
After save this configuration, Magento backend and frontend isn't loading skin/media/js like image below:
What could it be? Thanks.
Solved! Go to Solution.
You can follow below link
https://inchoo.net/wp-content/uploads/2016/11/10.png
https://inchoo.net/magento/set-up-cdn-in-magento/
Hello @W3store
Please check using inspect element, what is URL for images, css.
You have to set "https://cdn.mysite.com.br/" this path in
web/unsecure/base_skin_url
web/unsecure/base_media_url
web/unsecure/base_js_url
And same for Secure url as well.
Now check path for JS, Media, Css should call this new URL and if calling same URL then check on the same path css, js, images there or not.
So you can fix accordingly. Let me know if you still face issue.
Hello @W3store,
Looks like you have configured Cloudflare perfectly But can please make sure you have cleared cache, merge Js & CSS and compilation mode. If you still got an issue then let us know
Reference Link: https://www.clook.net/blog/integrate-cloudflare-magento/
--
If my answer is useful, please Accept as Solution & give Kudos
Hello Gelanivishal. Thanks for awsered.
After i configured CloudFlare and Magento web and merged css and js files on Cloudflare and Magento system develop menu, the problem continues.
In html code, the path to product image is:
In core_config_data table in MySql, the configuration of cdn is:
And the path to css files in html code is:
Wat could it be? Thanks
Hello Manish. Thanks for your help.
After i set it up, all the paths to products images are like image below:
In MySql core_config_data table is like image below:
The css path in html code after i configured Magento web menu is:
But unfortunately, the problem continues. In that case, what could it be? Thanks a lot
Hello @W3store
I can not check you images, can you please attach again.
Hello Manish. Thanks for the help.
I have this image abaout Magento MySql core_config_data that show cdn paths:
And the product image path that is in html code:
In this case the product image path has to be like this? ../skin/...
Showing images like this, can you attached third party link for images.
For product image urls should be like .../media/
You can follow below link
https://inchoo.net/wp-content/uploads/2016/11/10.png
https://inchoo.net/magento/set-up-cdn-in-magento/