Google's AMP is a gilded cage
AMP is Google's attempt to re-fight the transcoding wars of the early 2000s.
It is actively dangerous to the web ecosystem, helps disseminate propaganda, and is disliked by many users.
If, like me, you made the mistake of trying out AMP on your website - you're in a tricky position if you try to remove it. Google doesn't like anything leaving its clutches.
After a few weeks of AMP, I decided that it wasn't suitable for me. So I uninstalled the WordPress plugin. That's when the problems started.
When someone searches for my site on mobile, they still get presented with an AMP link:
Which leads to an error page:

No matter, they can click through to the real page, right?

No. The /amp
page doesn't exist and causes a 404 error. Google could use the canonical
URl to serve the original page - but that's too much like hard work for them.
So, how do you fix this? Thanks to Google's legendary lack of support and pathological aversion to writing clear, updated documentation - it's really hard to find a straight answer.
You would have thought that after a few days of getting AMP errors, Google would take the hint and stop serving the content, right? Sadly no.
There is one scrap of information which might give you some hope:
Use the "update-ping" mechanism to permanently remove content from the Google AMP Cache after the content has been removed from its origin. For example, to purge content formerly served athttps://cdn.ampproject.org/i/s/example.com/favicon.ico
, send an update ping request to:https://cdn.ampproject.org/update-ping/i/s/example.com/favicon.ico
. Cached content that no longer exists will eventually get removed from the cache; it's just faster to use "update-ping". Google's Remove AMP content "documentation"
If I'm reading this right, I have to send a ping for every page on my site.
Something like
https://cdn.ampproject.org/update-ping/c/s/shkspr.mobi/blog/2015/09/i3-electric-car-review/amp
For a few thousand pages. That's... bonkers! And, best of all, it doesn't work.
I chose a page, sent the ping, waited a few hours and... nothing! The AMP links still showed up in Google's results.
What's the solution? At this point you only have two options:
- Accept Google's benevolent intentions and reinstall AMP.
- Wait and hope.
I should have learned my lessons from my last interaction with Google. Oh well, fool me once...
Neil says:
How about 301 redirects?
Terence Eden says:
I've got a few thousand pages here. Redirecting them all correctly isn't a task I have time for.
masterk999 says:
Terence Eden says:
Terence Eden says:
Joe says:
foo says:
And seems fairly plausible that if Google follows such redirects it will attempt to modify their index and may fix the links served as search results. Think it's worth trying.
Terence Eden says:
Tomasz says:
Crawling and indexing websites is not something that is done few milliseconds after you push a new content. But you still have a very powerful tool to tell Google "hey guys, I did major change and need my website reindexed". You do this with webmaster tools.
Now it's not a matter of using Google's amp. It's how your website is structured at the moment it is remembered by indexer. You could have replaced WordPress with something else and you would still face the same problem. You see, you can modify that 404 URL to cached:shkspr.mobi/... and see what the content was the last time that site was indexed.
First of your problems is that you did not take care of redirecting your website.
Second is that you likely have very long caching settings on each of your pages.
Third is that you probably never used webmaster tools.
Go check the third option. Will save you some trouble next time you do a major change.
Terence Eden says:
Thanks for the comment.
1. I disagree. I provided all AMP pages with a canonical URl as per the AMP specification. When Google noticed a problem, it should have handled the redirect gracefully.
2. I don't. I use a CDN to cache the pages - but only for a few hours.
3. I did use webmaster tools. I requested a full re-crawl. That happened fairly quickly, but didn't stop the problems.
RewriteRule ^/?(.*)/amp/?$ /$1 [R=301,L]
That should do the trick as the amp plugin adds
Someone says:
Terence Eden says:
Adam says:
You can use regular expressions and references to do something like:
RewriteRule /(.*)/amp /$1 [R=301]
Full disclosure: still haven't used AMP so I have no idea what the URLs look like.
LeinardoSmith says:
claire says:
Terence Eden says:
Anon says:
Terence Eden says:
Bystander says:
Here's the documentation for redirecting with examples... Check your version of Apache first...
https://httpd.apache.org/docs/2.4/rewrite/remapping.html
Cole says:
RewriteRule (.*)/amp/$ $1 [R=301,L]
Depending on how your blog is set up the .htaccess file is in your root directory or the 'blog' directory, it is where the rewriteRules for wordpress' own urlrewriting live. this rule should be typed above the wordpress rules.
RewriteRule ^(.*)/amp/?$ /$1 [L,R=301]
Amit Kriplani says:
Terence Eden says:
Terence Eden says:
Edward R. says:
Terence Eden says:
Between responsive design and HTTP/2, there is no need for google to get involved at all. And speaking as a professional web developer, any "solution" which uses a special "mobile only" website when browsing on phones or tablets is a hack, and not a real solution at all. Mobile only versions are an ancient relic which were supposed to be eliminated by responsive design. Google really dropped the ball on this one.
Adolfo Flores says:
Terence Eden says:
Francisco.
Tim says:
Terence Eden says:
Codengo says:
Finally, don't discount this 'update-ping' technique, doing it for 1000 pages is no harder than doing it for 10, once you've got the right cURL command just put it in a loop. The results may still take some time to process, the AMP servers are edge servers after all, and there are a lot of them.
Terence Eden says:
2) proving that AMP isn't that important.
3) feel free to send a pull request. https://github.com/edent/blog-theme
4) as I said, the update ping method doesn't work. Even if it did, which curl command will find all of the former amp pages on my site?
Suri says:
PiNG says:
Several people have given advice on how to revert back, so I'll skip that. There are automated ways of handling millions of changes, so I think you really need to find a method that works for you and your situation.
I also am very against AMP, it's not useful for smartphones, but dumbphones, sure. The real problem is the controlling factor that whereskarlo stated.
Codengo says:
Hubert Łępicki says:
Google is advertising company, nothing more. Never forget that!
Mark says:
fatmike says:
Redirects won't work if the page is already cached from Google