{"id":3699,"date":"2017-09-15T12:12:32","date_gmt":"2017-09-15T12:12:32","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=3699"},"modified":"2019-10-09T06:29:01","modified_gmt":"2019-10-09T06:29:01","slug":"how-to-remove-the-plugin-without-losing-the-seo-and-with-proper-redirections","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-remove-the-plugin-without-losing-the-seo-and-with-proper-redirections\/","title":{"rendered":"How to remove the plugin without losing the SEO and with proper Redirections"},"content":{"rendered":"<p>If you are looking for a perfect and safe way to uninstall an AMP from your site then follow the below steps.<\/p>\n<h3><span id=\"step-2-setup-noindex-for-amp-pages\">Setup NOINDEX for AMP<\/span><\/h3>\n<p>This is an important step where we&#8217;re preventing Google to Index our pages.<\/p>\n<p>We&#8217;ll include a line of Code in the SEO Option of the AMP Settings.<\/p>\n<pre class=\"lang:default decode:true\">&lt;meta name=\"robots\" content=\"noindex,follow\"\/&gt;<\/pre>\n<p>First, go to the <strong>WordPress Admin Area<\/strong> -&gt; <strong>AMP option panel<\/strong> -&gt; <strong>Settings<\/strong> -&gt; <strong>SEO<\/strong> -&gt; Enter code in <strong>Head Section.<\/strong><\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-10083\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1.png\" alt=\"\" width=\"1315\" height=\"542\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1.png 1315w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-300x124.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-768x317.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-1024x422.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/1-1-100x41.png 100w\" sizes=\"(max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\n<p>In a week or two, you&#8217;ll be seeing the reduction in indexing.<\/p>\n<p>Once they are down we&#8217;ll go to the next step i.e., Deactivate and Delete the plugin.<\/p>\n<h3>Deactivate &amp; Delete the AMP Plugin<\/h3>\n<p>first, deactivate the Accelerated Mobile Pages (AMP) Plugin from Plugins Panel.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-10087\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3.png\" alt=\"\" width=\"1343\" height=\"327\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3.png 1343w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-300x73.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-768x187.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-1024x249.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-50x12.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-60x15.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/2-3-100x24.png 100w\" sizes=\"(max-width: 1343px) 100vw, 1343px\" \/><\/a><\/p>\n<p>After deactivating the plugin delete it completely.<\/p>\n<p>This will remove the AMP from your site.<\/p>\n<h3>Set up a Proper Redirection<\/h3>\n<p>How can you fix the 404 \/ page not found errors when you deactivate the AMP plugin.<\/p>\n<p><strong>Step 1:<\/strong>\u00a0Download the free plugin called\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\">Redirection<\/a>\u00a0By John Godley<\/p>\n<p><strong>Step 2:<\/strong>\u00a0After Activating go to\u00a0<strong>WordPress Dashboard\u00a0<\/strong>-&gt;\u00a0<strong>Tools\u00a0<\/strong>-&gt;\u00a0<strong>Redirection<\/strong>\u00a0and Setup new redirection.<\/p>\n<p>To setup new redirection, we need to setup 2 things Source URL and Target URL<br \/>\nSo in the source URL paste this regex code. \u00a0<code>\/(.*)\\\/amp<\/code><br \/>\nThis code will make sure all your post URL ending with \/AMP are taken as Source URL and will be redirected.<\/p>\n<p>In the target, URL paste this\u00a0<code>https:\/\/www.yourdomain.com\/$1<\/code>\u00a0and make sure you enable the checkbox \u201cRegular Expression\u201d.<\/p>\n<p>Your redirection should look like this.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-%E2%80%B9-wordpress-%E2%80%94-WordPress-Google-Chrome-2019-06-17-11.56.21.png\" data-slb-active=\"1\" data-slb-asset=\"459133907\" data-slb-internal=\"0\" data-slb-group=\"391\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-11114\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-%E2%80%B9-wordpress-%E2%80%94-WordPress-Google-Chrome-2019-06-17-11.56.21.png\" sizes=\"(max-width: 1319px) 100vw, 1319px\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21.png 1319w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-300x112.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-768x286.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-1024x382.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-50x19.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-60x22.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/06\/Redirection-\u2039-wordpress-\u2014-WordPress-Google-Chrome-2019-06-17-11.56.21-100x37.png 100w\" alt=\"\" width=\"1319\" height=\"492\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong>\u00a0Hit Add Redirection and test it.<br \/>\nI suggest you to please check multiple amp pages and make sure they are working as expected.<\/p>\n<p>I hope this will help you handling 404 pages generated after deactivating the AMP plugin, and I\u2019m sure after some time Google will update its data in search console and \/amp pages will be deindexed slowly.<\/p>\n<p><strong>That&#8217;s it for this tutorial!<\/strong><\/p>\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>If you are looking for a perfect and safe way to uninstall an AMP from your site then follow the below steps. Setup NOINDEX for AMP This is an important step where we&#8217;re preventing Google to Index our pages. We&#8217;ll include a line of Code in the SEO Option of&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[83],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3699"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=3699"}],"version-history":[{"count":11,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3699\/revisions"}],"predecessor-version":[{"id":14453,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3699\/revisions\/14453"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=3699"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=3699"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=3699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}