Most of the users access the internet on their mobile phones. But, all the sites are not mobile-friendly yet. Thus, Google started a project called AMP to make sure that the websites meet user expectations.
There were some rumors that Google is considering AMP as a ranking factor, but that is not true. Some bloggers have observed, their site loading quickly after enabling AMP. But on the other hand, they lose user engagements, ads impressions, and newsletter sign-ups on mobile devices. That made their mind to disable AMP.
How to Disable Google AMP?
After considering the above situations, you are on the stage where you may feel like not to use AMP or disable Google AMP. But, in reality, you can’t turn it off. It’s because, when you do a Google search on your mobile device, Google detects that it’s a mobile device, and reroutes your search request through their AMP servers, and not through their regular servers.
Thus, it causes the link to become a link to Google’s AMP system. But, you can remove your AMP content from search results. Google even recommended a guide on How to Remove AMP contents from search results.
If this won’t help you, then don’t panic. There are several other ways too through which you can disable Google AMP.
Remove rel=” amphtml” output from the head:
Google detects AMP pages by rel= “amphtml” markup link, which lies in the website header. To remove rel=”amphtml”, follow the below steps. Using regex, match the string and replace it with any value you want (keeping it blank will be great). To do so, Install & activate Real-Time Find and Replace plugin.
- In the tools section, click on Real-Time Find and Replace.
- Click Use Regex.
- In the find field, insert this query as it is
<link rel="amphtml" href="(.+)" >
- Next, Go to replace field and keep it blank.
- Click on Update.
Removing this markup means telling Google that we don’t have AMP version of the page or site. It makes Google ‘deindexes’ the page. Here a problem lies- Google may consider AMP version pages as duplicate URL for canonical.
The condition can take place because we have removed relational markup. What’s now? So, here we have to add the solution by using NOINDEX for removing AMP pages from Google Search. To do so,
- Open AMP for WP plugin settings.
- Click on SEO.
- Add the following line of code in the head section for AMP page:
<meta name="robots" content="noindex,follow"/>
If you are not using AMP for WP plugin, then you can use Glue for Yoast SEO & AMP plugin to add above meta tag on your AMP pages.
- Goto, SEO>> AMP
- Add the code in Extra code in <head>
Now, you are done with setting up NOINDEX for the AMP page. But wait, without further process, you are done with the half process only. So, let’s move to additional steps. Next thing you have to do,
- Go to Google Search Console.
- Go to your Property and Sitemaps.
- Check the box of XML sitemap and Click Resubmit.
Doing this means asking Google to NOINDEX your AMP pages and re-indexed over to the original URLs. It may take a few days to complete. Once you observed that your AMP has been disabled, you can disable & delete AMP plugin.
Disable AMP plugin and Add Redirects:
Deactivate AMP plugin and put the following code on .htaccess file in the root directory. Follow this guide to edit .htaccess file on your server.
# Redirect from AMP to non-AMP page RewriteRule ^(.*)\/amp$ $1 [R=301,L]
I have implemented both tricks and found both works fine. I guarantee, applying one of these will not allow your visitor to experience 404 errors. Thus, your site will automatically get a prior rank on the search engine. If you are facing any problem while removing, feel free to ask in the comment section below.