Cloudfare and AMP issue resolved
-
Hi Mohammed.
After like 1 month trying to figure this out i finally got AMP to work in my blog that’s using Cloudfare.
You have to create a page rule in Cloudfare with the following settings:
URL pattern: *yourdomain.com/*/amp/*
Disable Apps
Disable Performance
Keep SSL Full set as ON (if your site is not fully using ssl, then leave it at default)Then, you have to go to your cache plugin and turn OFF the HTTPS protocol rewrite
This is what you get with that setting OFF: <script src=”https://cdn.ampproject.org/v0.js” async=””></script>
Setting it to ON results in the following which doesn’t validate: <script src=”//cdn.ampproject.org/v0.js” async=””></script>
I hope you can get it to work too
Now just waiting for the Doubleclick ads support and this plugin will be golden ??
Thanks for your work Mohammed.
- The topic ‘Cloudfare and AMP issue resolved’ is closed to new replies.