Mobile app version of vmapp.org
Login or Join
Alves908

: After turning off and on my CDN (cloudflare), everything broke I need some help asap. I had some problems with my icon fonts and found out, it's because of the CDN and "cross domain". So

@Alves908

Posted in: #Cloudflare #Https #Wordpress

I need some help asap. I had some problems with my icon fonts and found out, it's because of the CDN and "cross domain". So I thought, I should try to deactivate my CDN and look what happens.... BAD IDEA!!!

There were different error sites and so I turn on the CDN again. I know that I have to wait up to 48 hours until everything should work. But nothings worked and I have clients who pay for my service on this site.

My site works with WordPress but I can't even login because the wp-admin page doesn't appear.

The problem is, the site appears but without any JavaScript and CSS. With the "Developer Tools" I checked my HTML code and found out, every link to CSS or JavaScript is wrong. I use SSL everywhere but it shows HTTP instead of HTTPS. And sometimes there is even no http: or https: (see below).


script type=text/rocketscript data-rocketsrc=//www.domain
script type=text/rocketscript data-rocketsrc=http://www.domain


I already switch of the rocket loader of CloudFlare and upload my local header.php, but nothing works. I type the "s" of https manually with the console to check, if it would work... and it did.

So how can I get rid of this rocketscript and add HTTPS everywhere instead of HTTP?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

2 Comments

Sorted by latest first Latest Oldest Best

 

@Margaret670

The issues with icon fonts are related to CORS (check out the article What is CORS?). You should have the option to add the appropriate HTTP headers to get rid of that problem. Here's an example of the HTTP header access-control-allow-origin:

The missing http(s) is not a problem. When you just use "//" either or will be used automatically based on your site setup.

10% popularity Vote Up Vote Down


 

@Ravi8258870

Your situation is bad I must say. But still, you can be able to make some "attempts" to solve it. I suggest you use your backup files and restore your site to its original state. But if you don't have any backups, he try the below.

Firstly, activate your site on Cloudflare again. Try to use the default settings and see if your site will work again. Try to ignore the images and icon breaking since that is a common issue, and which we will solve later and automatically.

Once you have your site working with original settings, now you can try to switch back to your host servers. But please note, if you had tampered with the default settings, then you can revert them to what many recommend. I think that doing so can help restore your site back otherwise, you will need a back up to do it. Settings you should change include page rules, speed, networks.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme