1. Home
  2. How To
  3. How to Fix 404 on AMP pages after deactivating the AMP plugin

How to Fix 404 on AMP pages after deactivating the AMP plugin

How can you fix the 404 / page not found errors when you deactivate the AMP plugin.

Step #1: Download the free plugin called Redirection By John Godley

Step #2: After Activating go to WordPress Dashboard->Tools->Redirection and Setup new redirection.

To setup new redirection, we need to setup 2 things Source URL and Target URL
So in the source URL paste this regex code.  /(.*)\/amp
This code will make sure all your post URL ending with /AMP are taken as Source URL and will be redirected.

In the target, URL paste this https://www.yourdomain.com/$1 and make sure you enable the checkbox “Regular Expression”.

Your redirection should look like this.
how-to-fix-404-on-amp-pages-after-deactivating-the-amp-plugin

Step #3: Hit Add Redirection and test it.
I suggest you to please check multiple amp pages and make sure they are working as expected.

I hope this will help you handling 404 pages generated after deactivating the AMP plugin, and I’m sure after some time Google will update its data in search console and /amp pages will be deindexed slowly.

If you have any questions or have suggestions please feel free to leave a comment and I will get back to you.

Updated on July 26, 2017

Was this article helpful?

Related Articles

Comments

    1. Hey Jagannath,

      I’m glad that the article helped you fix the issue.

      Mohammed kaludi

  1. Hi Mohammed,
    Thanks a lot for this. I’ve been encountering 404 errors on my amp blog posts. Will try this shortly. 🙂

Add A Comment