Resources     Blog  

  1. Home
  2. WordPress Tutorials
  3. How to Disable Google AMP for WordPress Websites

How to Disable Google AMP for WordPress Websites

Not everyone is seeing a profound improvement in visitor traffic or retention when using Google AMP in WordPress. In fact, many bloggers report seeing a boost in visitor engagement after disabling Accelerated Mobile Pages.

While it may have been a worthwhile venture for some, it’s hurt visitor engagement rates for others. As a result, many people are dropping the system from their WordPress websites.

In this tutorial, I’m going to show you how to disable Google AMP in WordPress and set up your redirects. It may help improve how visitors interact with your content.

What is Wrong with Google AMP?

Google AMP increases site speed by restricting certain elements from being displayed. Essentially, it cuts out a lot of the HTML and JavaScript programming that makes a website slow.

The problem many people are having is that this once valuable plugin for WordPress also removes interactive elements of the site. In some cases, this even meant removing the navigation menu.

Without these interactive elements, visitors are unable to easily explore the content of a website. You would have to rely more on internal linking than sidebars, menus and other JavaScript components.

This often leads to lower conversion rates and reduced pageviews by guests.

Should Everyone Remove Google AMP?

In reality, Google AMP does its job fairly well. It does, indeed, speed up the website and delivers a quick response for visitors. However, you need to justify whether this is right for you or not.

It depends on your goals and how your website is designed in the first place. If you don’t see a problem with AMP controlling your layout or have an increase in traffic since setting it up, keep it.

Otherwise, you may want to consider what the speed tool is doing by examining the behavior of visitors. Is your pageview count lower now? Are people spending less time on your site in total? These are some of the questions you need to ask yourself.

Disabling the AMP Plugin

The first step is disabling your AMP plugin.

Go to the Plugins section of WordPress.

Plugins

Find your AMP plugin and click the “Deactivate” link.

Deactivate

Once the plugin is deactivated, click the “Delete” link to remove it from WordPress. This will keep it from requiring updates and keep your site clean.

Delete Link

Setting Up Redirects

Removing the plugin is only half of the process. Now, you need to redirect traffic from AMP-ready searches to your actual website. If someone clicks on an “AMP” labeled search result from a smartphone, you don’t want it to go to a 404 error screen.

This happens because Google will hold a cache of your links in its database for quite some time. It may be days or weeks before Google crawls your site again and corrects the content.

In the meantime, you’ll need to set up a 301 redirect in WordPress.

Using the Redirection Plugin

Using a plugin is perhaps one of the easiest ways to redirect your inbound AMP links. For this tutorial, I’m demonstrating the Redirection plugin. It’s a simple tool that is easy to use.

From the Plugins screen, click the “Add New” button.

Add New Plugin

Install and activate the “Redirection” plugin. Search for it from the field located on the right side of your screen.

Redirection

There will be several plugins all centering around creating redirects. Any one of these may work, but the following instructions are for Redirection.

Go to the Tools area and click, “Redirection.”

Redirection Tool

Input this line of text into the Source URL:

/(.*)\/amp

Source URL

Type this line into the Target URL:

http://www.yourwebsite.com/$1

Target URL

Make sure you change the “http://www.yourwebsite.com” portion to reflect your own domain name.

Select the Group drop down window and click, “Redirections.”

Redirections Group

Check the “Regex” box on the right side of the Source URL.

Regex

Click the “Add Redirect” button to save.

Add Redirect

Using htaccess to Redirect AMP

Not everyone wants to use plugins to control their websites. That’s OK, because you can also set up WordPress 301 redirects with htaccess.

You have a few options available when making changes to htaccess. Some people like using FTP applications like FileZilla to access their websites. Personally, I like use cPanel’s File Manager as it can be accessed from virtually anywhere.

From File Manager, select “htaccess” and click the Edit button from the top tool bar.

Edit File

When the window opens, simply click the “Edit” button on the bottom. This screen allows you to change the character encoding, which we don’t need to worry about for now.

Edit Button

Paste this snippet of code into your htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]

Paste htaccess

Click the “Save Changes” button on the top right.

Save Changes

Performance Matters

Although Google AMP has potential for some, it may be more of a burden for others. Always keep an eye on how your visitors utilize your website. Sacrificing engagement for the sake of speed isn’t always a good course of action. Tools like Google Analytics will help you determine if your visitors are losing interest in your site.

What plugins have you found to be less productive after installing them? What kinds of things do you implement for boosting performance of your website?

Author: Kaumil Patel

Kaumil Patel is the Chief Operating Officer of GreenGeeks and has over 13 years of experience in the web hosting industry working for and owning web hosting companies. Kaumil’s expertise is in marketing, business development, operations, acquisitions and mergers.

Was this article helpful?

Related Articles

Comments

  1. When should I remove the redirection code? or It has to stay there a lifetime?

  2. I did the 1st process using plugin, but it shows the result on mobile with amp

  3. HI Thank you for your good information Its helped me a lot.

    Thank You.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.