How to Safely Remove AMP

Posted in: Newspaper
Post count: 16

I setup AMP on my wordpress site last year, using Newspaper.
In applying for MediaVine, they said I need to remove it.
I want to make sure I remove it correctly, and safely – without hurting the site or SEO.
Searching the docs and support forum, I have been unable to find any info.
Either I am searching wrong, or can’t find it.
Anyone able to point me in the right direction?

Thanks!!

Post count: 102

1. Install the Plugin: “Real-Time Find and Replace.”
In the settings, check the “Use RegEx” box and write in the “Find” box:

<link rel=”amphtml” href=”(.+)” >

Leave the box “Repleace With” empty.

2. If you use WordPress AMP plugin, go to your SEO plugin and add <meta name=”robots” content=”noindex,follow”/> in the section for AMP (if you use Yoast, install Glue for Yoast SEO & AMP), if you use AMPforWP you can set it there directly in the “SEO” menu item.

3. Then add the following to the .htaccess file

RewriteRule ^(.*)\/amp$ $1 [R=301,L]

that was it

Don’t uninstall the amp plugin yet, wait a week or two. You can go to google webmastertools and have your sitemap re-indexed, then it sometimes goes a little faster.

It usually takes Google about 2 weeks to kick your AMP pages out of the index without you getting ranking problems.

Post count: 16

Wow, thank you for such a quick and thorough reply!!

Step 1 sounds straightforward enough

Step 2 – I though tI did AMP through Newspaper theme. I checked installed plugins and I see one called “AMP”.
A) How do I determine if I used AMP for WP?
B) I use Rankmath if that changes anything, not Yoast

Any guidance on Step 3 is appreciated – I can write great, I can rank even better. But I am completely illiterate when it comes to the tech side of blogging. SO I appreciate your help and patience!!!

THanks again

Post count: 102

This is the AMP plugin from WordPress, so you can ignore the point about AMPforWP. For RankMath, just disable “AMP” in the dashboard.

Step three you can do in RankMath as follows:

1. open “Redirects” in the plugin.
2. click on Add New and write
(.*)/amp in “Source URLS”
3. next to it select “Regex”.
4. In the Destination URL field write: /$1

That’s it, now only about two weeks to wait

Post count: 27744

Hello,


@Micha
Thank you for sharing those details; it will be helpful for other users as well.

@mikeshecky
You can check also, this guide https://developers.google.com/search/docs/crawling-indexing/amp/remove-amp

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.