Deactivate google amp the right way

Posted in: Newspaper
Post count: 1

Hello! For a long time I used the mobile theme only as AMP, now I want to use it only as MOBILE THEME.

What are the steps to safely disable amp?

Post count: 102

This way worked for me:
1. Install “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 secoton 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]

and ready.

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.

Post count: 35449

Hi juanjobasc you can use the Micha suggestion, it should work fine.
Other settings that can be done are to set the option only on amp in the mobile theme – https://i.imgur.com/VrJ4iPw.png and ask google to reindex your website (also clear all ache, object cache, purge CDN), after your website is reindexed you can also disable the amp plugin.
Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.