cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

SOLVED

Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

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:

 

4hNPt

 

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:

 

7p0uc

 

After save this configuration, Magento backend and frontend isn't loading skin/media/js like image below:

enter image description here

What could it be? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

8 REPLIES 8

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

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.

Manish Mittal
https://www.manishmittal.com/

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

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

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

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:

 

Untitled-4.png

 

In core_config_data table in MySql, the configuration of cdn is:

 

Untitled-3.png

 

And the path to css files in html code is:

 

Untitled-2.png

 

Wat could it be? Thanks Smiley Happy

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

Hello Manish. Thanks for your help.

 

After i set it up, all the paths to products images are like image below:

 

Untitled-4.pngIn MySql core_config_data table is like image below:

 

Untitled-3.png

 

The css path in html code after i configured Magento web menu is:

 

Untitled-2.png

 

But unfortunately, the problem continues. In that case, what could it be? Thanks a lot Smiley Happy

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

Hello @W3store

 

I can not check you images, can you please attach again. 

Manish Mittal
https://www.manishmittal.com/

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

Hello Manish. Thanks for the help.

 

I have this image abaout Magento MySql core_config_data that show cdn paths:

 

Untitled-3.png

 

And the product image path that is in html code:

 

Untitled-4.png

 

In this case the product image path has to be like this? ../skin/...

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

-Reply to Message - Magento Forums.png

 

Showing images like this, can you attached third party link for images. 

 

For product image urls should be like .../media/

Manish Mittal
https://www.manishmittal.com/

Re: Magento 1.9 - Cloudflare CDN CNAME not loading skin/media/js

You can follow below link

 

https://inchoo.net/wp-content/uploads/2016/11/10.png

 

https://inchoo.net/magento/set-up-cdn-in-magento/

Manish Mittal
https://www.manishmittal.com/