• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey Jorge @killersilver

    Thank you so much! I’m so glad to know that you were able to solve the issue and you even shared it with us ??

    We are planning to add doubleclick support in Advance ads amp extension.

    Thanks again,

    Regards,
    Ahmed

    Thanx Jorge ?? , Your support means a lot to us

    • This reply was modified 8 years, 3 months ago by Khaled.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cloudfare and AMP issue resolved’ is closed to new replies.