Reminder to folks it’s time to fully retire use of AMP as another failed abandoned Google attempt to take over the web when it was pointless and stupid for many sites where a print ready page would have worked just as well for mobile. It was a money grab to track folks usage by loading your content on their server. Ugh.
At this point, more than a year after AMP was retired as “end of life,” it’s time to move on.
Requires three things
a) setup proper 301 redirects to keep links if you had lots of inbound traffic, but frankly Google recommends simple 404 so they stop caching the /amp or ?amp URL — keep in mind normal htaccess redirect of /amp –> not /amp is tricky in case you have a post url slug of mycontent/amplify-your-cake — would kill that URL.
You need to try something like this in your root htaccess file, then *test* a amp url to make sure it redirects
e.g.,
RewriteEngine On
# Removes "amp" (or "amp/") from the end of the URL-path
RewriteRule (.*)amp/?$ /$1 [R=301,L]
this code also shared quite a bit online
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]
2) deactivate any ‘AMP’ plugins in WordPress – which will remove the rel= link in your post headers; to remove a loop
3) clear AMP cache with Google: https://developers.google.com/amp/cache/update-cache
// I don’t work here, just started to do this last year, and catching up on final nail in the AMP coffin for our other sites this month //
*also posted in Newspaper forum; but copied here for all the rest of us //
My pleasure. Also, note that Google has actually made it harder to clear the amp cache. So, really, no need to bother with that as either the 404 amp endpoints, optional 301 redirects, and removing the rel= links in the post meta data will solve that. At some point they will just switch AMP off entirely as they really don’t care.
I’m trying to see your writing.Google 구글amp cache was difficult.Can I only apply large rules through redirection plug-in?

simchris,
This is my redirection plug-in. Please help me with how to apply it.
Redirect AMP pages
http://site.com/article/amp/ ⇒ http://site.com/article/
Source
^/(.*?)/amp/$
Target
/$1/
————————
Redirect ?amp pages
http://site.com/article/?amp=12 ⇒ http://site.com/article/
Source
^/(.*?)/\?amp=.*
Target
/$1/
simchris, Thank you, friend, I have a question.
When you turn off the amplifier and set the redirection value,
There will be a lot of redirection on the homepage.
Wouldn’t this negatively affect the SEO score?
Note: when setting up be sure to set regex value option in Redirection plugin, not a simple one page redirect (see the how to for the plugin for more info).
There is no SEO problem as AMP was always a separate version of the canonical main page; hence why Google makes such a big deal about the “canonical” URL. This way
mysite/page-name
mysite/page-name?amp
mysite/page-name?pdf
would all have (1) “canonical link” which is the main one. This is how duplicate content is addressed and managed.
When you remove /amp or ?=amp links, your main page will load from any of the inbound amp links, and since the main page was always the “real” or “canonical” link, there is no SEO issue as suddenly losing hundreds of inbound links redirecting to what was always the main link has no downside.
Technically, just turning off AMP and letting google see they are gone, will just clean things up. There is no penalty for removing amp links entirely even when NOT doing a regex redirect.
🙂
Looking at the actual error items of my website, most of my website, but it is not index due to be exposed.Is it related to AMP?
Google search panel will show “errors” about the missing pages, and also will show stuff like “3,000 pages indexed; 2800 not indexed” — it will take couple of months for them to clean house.
You should go into your search console and ‘resubmit’ your site map to accerate them no longer seeing amp pages.
simchris
https://politicadeverdade.com/kali/?amp
https://politicadeverdade.com/allin/amp/
I have 2 forms of amp link like this.
So should I apply both of the formal redirection my friend taught me??
Source
^/(.*?)/amp/$
Source
^/(.*?)/\?amp=.*
again:
Redirect AMP pages
http://site.com/article/amp/ ⇒ http://site.com/article/
Source
^/(.*?)/amp/$
Target
/$1/
————————
Redirect ?amp pages
http://site.com/article/?amp=12 ⇒ http://site.com/article/
Source
^/(.*?)/\?amp=.*
Target
/$1/
I set it up. Then when I click the link on my page on my mobile, it goes to the wrong place. What’s the problem with this?
https://politicadeverdade.com/hugesobet/amp
click >
https://politicadeverdade.com/ampersandbet-2/
You will be redirected to the wrong place.
If you click address one, it goes to number two. I put the rules in..
Some links are all directed towards link 2. I think there’s an error
2url = https://politicadeverdade.com/ampersandbet-2/
-
This reply was modified 1 year by
muktipolice.
TIPS:
a) make sure you had/have the “delete all info” setting checked when you disable and delete the AMP plugin; which should be done before setting up regex entries
b) from the WP settings, do “save permalinks” to clear any permalink cache (always do this after any AMP related stuff)
Good luck!
What I did
1. Setting Regular Expression Items
2. AMP OFF
3. URL ERROR
