Clicky

  1. Home
  2. Troubleshooting
  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.

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.

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on July 23, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

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. 🙂

  2. Hi Mohammed,

    This has not worked for me and all my images have disappeared. Any ideas on how to fix this?

    Thanks

    Dan

  3. for the issues about amp page in google its about index, right?

  4. hi
    I have just installed amp and the navigation menu and url link don t work…
    Regards
    Jose

    1. Hi sarthak upadhyay,

      Native option is not available in our AMPforWP plugin.

  5. The input form Redirection URL now different

    What does this mean?

    To prevent a greedy regular expression you can use ^ to anchor it to the start of the URL. For example: ^/(.*)\/amp

    1. Hi Erdiawan,

      Could you let us know where exactly you found this “the input form Redirection URL now different” message?

  6. What option to select in the ‘query parameters’ while adding a new redirection?

    1. Hi Hina Gujral,

      No need to add anything in the query parameter once you select the “Regex” option “query parameters” option automatically will disappear

  7. Thank you sir
    But it didn’t work for me.
    I still get the 404 error

Leave a Comment