{"id":85,"date":"2018-07-16T23:03:34","date_gmt":"2018-07-16T23:03:34","guid":{"rendered":"http:\/\/www.projectimmerse.com\/?p=85"},"modified":"2020-06-16T23:43:16","modified_gmt":"2020-06-16T23:43:16","slug":"wordpress-removing-amp-plugin","status":"publish","type":"post","link":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/","title":{"rendered":"WordPress &#8211; Removing AMP Plugin"},"content":{"rendered":"<p>I&#8217;m actually big fan of this wordpress plugin despite the bugs. The authors of this plugin I can tell have been working hard in fixing existing bugs and there are a lot of them, not an easy task. As a developer myself I know how wild code can get, so I give these guys mad respect and credit. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.projectimmerse.com\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin-1024x344.png\" alt=\"AMP for WP\" width=\"660\" height=\"222\" class=\"aligncenter size-large wp-image-86\" srcset=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin-1024x344.png 1024w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin-300x101.png 300w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin-768x258.png 768w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin-80x27.png 80w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/amp-for-wp-wordpress-plugin.png 1788w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/p>\n<p>Recently I was tasked with removing this plugin for a site. Disabling and removing the plugin was just the first step. The final step was to implement a redirect that would automatically redirect these amp urls to it&#8217;s respective non-amp url &#8211; leaving this as-is would be bad for SEO. And the client would not be happy to see their google rankings go down. So let&#8217;s take care of this.  <\/p>\n<p><!--more--><\/p>\n<p>After playing around with some directives I was able to put together a working solution. Check it out below.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n# BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - &#x5B;L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php &#x5B;L]\r\n\r\n# Redirect AMP to non-AMP\r\nRewriteCond %{REQUEST_URI} (.+)\/amp(.*)$\r\nRewriteRule ^ %1\/ &#x5B;R=301,L]\r\n\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>Were basically saying that if a URL contains the amp string, redirect that URL to the original URL. I found that placing this directive near the top of the .htaccess file worked best. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m actually big fan of this wordpress plugin despite the bugs. The authors of this plugin I can tell have been working hard in fixing existing bugs and there are a lot of them, not an easy task. As a developer myself I know how wild code can get, so I give these guys mad &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordPress &#8211; Removing AMP Plugin&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1120,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Wordpress - Removing AMP Plugin - Project Immerse<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wordpress - Removing AMP Plugin - Project Immerse\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m actually big fan of this wordpress plugin despite the bugs. The authors of this plugin I can tell have been working hard in fixing existing bugs and there are a lot of them, not an easy task. As a developer myself I know how wild code can get, so I give these guys mad &hellip; Continue reading &quot;WordPress &#8211; Removing AMP Plugin&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"Project Immerse\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-16T23:03:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-16T23:43:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alex Mercer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Mercer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/\"},\"author\":{\"name\":\"Alex Mercer\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"headline\":\"WordPress &#8211; Removing AMP Plugin\",\"datePublished\":\"2018-07-16T23:03:34+00:00\",\"dateModified\":\"2020-06-16T23:43:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/\"},\"wordCount\":232,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/wordpress-\u2013-removing-amp-plugin.png\",\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/\",\"name\":\"Wordpress - Removing AMP Plugin - Project Immerse\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/wordpress-\u2013-removing-amp-plugin.png\",\"datePublished\":\"2018-07-16T23:03:34+00:00\",\"dateModified\":\"2020-06-16T23:43:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/wordpress-\u2013-removing-amp-plugin.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/wordpress-\u2013-removing-amp-plugin.png\",\"width\":750,\"height\":750,\"caption\":\"AMP for WP - Removing AMP Plugin\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wordpress-removing-amp-plugin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress &#8211; Removing AMP Plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\",\"name\":\"Project Immerse\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\",\"name\":\"Alex Mercer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"caption\":\"Alex Mercer\"},\"description\":\"Alex Mercer is a writer and contributor at Project Immerse, covering web design, WordPress, web development, SEO, digital strategy, emerging technology, and the evolving world of the web. His work focuses on practical ideas, useful tools, and approachable guidance that help creators, developers, and business owners build better digital experiences. Alex writes with a hands-on, curiosity-driven approach, exploring both established web practices and new technologies shaping how websites are designed, built, and discovered.\",\"sameAs\":[\"https:\\\/\\\/www.projectimmerse.com\"],\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/author\\\/projectimmerse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wordpress - Removing AMP Plugin - Project Immerse","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/","og_locale":"en_US","og_type":"article","og_title":"Wordpress - Removing AMP Plugin - Project Immerse","og_description":"I&#8217;m actually big fan of this wordpress plugin despite the bugs. The authors of this plugin I can tell have been working hard in fixing existing bugs and there are a lot of them, not an easy task. As a developer myself I know how wild code can get, so I give these guys mad &hellip; Continue reading \"WordPress &#8211; Removing AMP Plugin\"","og_url":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/","og_site_name":"Project Immerse","article_published_time":"2018-07-16T23:03:34+00:00","article_modified_time":"2020-06-16T23:43:16+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png","type":"image\/png"}],"author":"Alex Mercer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alex Mercer","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#article","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/"},"author":{"name":"Alex Mercer","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"headline":"WordPress &#8211; Removing AMP Plugin","datePublished":"2018-07-16T23:03:34+00:00","dateModified":"2020-06-16T23:43:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/"},"wordCount":232,"commentCount":0,"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png","articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/","url":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/","name":"Wordpress - Removing AMP Plugin - Project Immerse","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#primaryimage"},"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png","datePublished":"2018-07-16T23:03:34+00:00","dateModified":"2020-06-16T23:43:16+00:00","author":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"breadcrumb":{"@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#primaryimage","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/07\/wordpress-\u2013-removing-amp-plugin.png","width":750,"height":750,"caption":"AMP for WP - Removing AMP Plugin"},{"@type":"BreadcrumbList","@id":"https:\/\/www.projectimmerse.com\/blog\/wordpress-removing-amp-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.projectimmerse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress &#8211; Removing AMP Plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.projectimmerse.com\/blog\/#website","url":"https:\/\/www.projectimmerse.com\/blog\/","name":"Project Immerse","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.projectimmerse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5","name":"Alex Mercer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","caption":"Alex Mercer"},"description":"Alex Mercer is a writer and contributor at Project Immerse, covering web design, WordPress, web development, SEO, digital strategy, emerging technology, and the evolving world of the web. His work focuses on practical ideas, useful tools, and approachable guidance that help creators, developers, and business owners build better digital experiences. Alex writes with a hands-on, curiosity-driven approach, exploring both established web practices and new technologies shaping how websites are designed, built, and discovered.","sameAs":["https:\/\/www.projectimmerse.com"],"url":"https:\/\/www.projectimmerse.com\/blog\/author\/projectimmerse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":7,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions\/470"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media\/1120"}],"wp:attachment":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}