FluffyShotMe

Fine Art Photography by David Morefield from Houston, Texas

  • Home
  • View My Gallery
  • Tutorials/Tips
    • My Photography Adventures
    • Photography Tutorials/Tips
    • Helpful Tips
  • About David Morefield
  • Contact
Home » How I solved my AMP Validation Error when using Cloudflare

How I solved my AMP Validation Error when using Cloudflare

 

AMP Validation ErrorAre you experiencing a validation error when using AMP and CloudFlare?

Recently, I installed the AMP plugin from Automattic in order to validate with Google’s Accelerated Mobile Pages to take advantage of the speed that it offers, but I ran into some major issues. I installed the plugin without any issues, but one Google Search Console indexed my pages a few days later, I saw that every AMP link had a validation error.

I read through the documentation and it seemed that this validation error was a common problem, but the solution was evasive. Since AMP has only been out since last month, there was not much documentation aside from support forums written by folks speaking in some foreign code. Yes, I run a website for my photography, but I am a photographer, not a coding expert. That said, when faced with a validation error and looking at it in Developer Tools I can somewhat understand what is going on, but first I have to have copious amounts of caffeine.

Buried deep down in one of the support threads, I found where someone with the CloudFlare plugin was experiencing a validation error on all of their AMP generated links until they disabled the HTTPS Protocol Rewriting (shown below):

HTTPS Protocol Rewriting

Along the way, I found another plugin that adds the AMP plugin as an extension to the Yoast SEO plugin. Basically, the Glue for Yoast SEO & AMP plugin assures that AMP will be using the correct the metadata from Yoast SEO and pulls that into AMP.

So instead of staying up all night reading support threads and brewing endless cups of coffee, if you are running CloudFlare & Yoast SEO and have plans to install AMP, I would suggest that you try what worked for me. If that resolves your issue, please share this link so others can find the solution to this misery.

by David Morefield

Share this:

  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
  • Tumblr
  • Reddit
  • Pocket

Comments

comments

Sign up to receive special discounts via e-mail

Order My Book Today

Helpful Tips and Other News

Who likes stickers?

Business Cards or a Sticker? Recently while planning to a trip to Sweden, I ran across an ad for stickers. I started thinking to myself, “Who doesn’t like stickers?” So I decided to design a sticker for the trip and hand them out along the way in addition to my business cards. This gave way […]

More Posts from this Category

Kenya Mission Trip January 2018

Kenya Flood 3

Kenya Flood Relief – How to Help

How can you help with the Kenya Flood effort? April 22, 2018 – For the past several days, Kenya has been subject to severe rains and flooding. The forecast over the next 5 days is calling for more of the same. What is compounding the issue in Kenya is that they have been in a […]

More Posts from this Category

Photography Tutorials

Tips for Shooting the Aurora Borealis

The Preparation When shooting the Northern Lights, there is a bit of homework that should be conducted before traveling to attempt to get any shots. This step is often overlooked and can lead to poor results when ignored. Scout locations by satellite view on Google Maps prior to travel Focus your location search on areas […]

More Photography Tutorials

  • Home
  • My Gallery
  • Contact
  • Subscribe
  • FAQ
  • About David Morefield
  • Policies
Copyright © 2023 FluffyShotMe Photography
Go to mobile version