Inaktivera AMP i WordPress på ett SEO-vänligt sätt

AMP-projektet (Accelerated Mobile Pages) är ett initiativ med öppen källkod som ska förbättra användarupplevelsen för mobila enheter. Genomförandet av AMP är inte lätt. Det finns många potentiella problem som uppstår när AMP används. Därför är det bättre att inaktivera AMP så snart som möjligt.

  1. Ta bort länken rel="amphtml" från de sidor som inte är förampade.
  2. Ange NOINDEX för AMP-sidor

Innan jag går in på den tekniska förklaringen med exakta steg, låt mig berätta för dig …

Varför är det en bra idé att ta bort AMP?

  • För ett ögonblick kan du glömma uttalandet om att ”hastighet är en rankingfaktor”. Att bara ha en snabbast mobila webbplats på Internet med en fruktansvärd design är inte tillräckligt för att bloggen ska växa. När det gäller monetärt värde och varumärke, om din blogg inte presterar bra på grund av AMP, varför ta risken?
  • Tänk om du har 1000 sidor, är det inte komplicerat att se till att alla AMP-sidor fungerar korrekt eller inte? Google Search Console visar begränsad information som inte räcker för att en webmaster ska kunna analysera AMP-sidornas användbarhet.
  • AMP ökar det extra arbetet för en bloggare. Alla bloggare är inte tekniskt kunniga. Jag var tvungen att kontrollera varje webbsida. Någonstans upptäckte jag att YouTube iframe inte fungerar, att det inte finns något kommentarsformulär, att till och med en viss HTML-kod inte fungerade i min författarruta osv. AMP tvingar webbansvariga att offra mycket.
  • Jag anser att extra insticksprogram bjuder in till eventuella buggar, säkerhetsproblem och konflikter med andra insticksprogram. Hittills har jag inte kunnat hitta någon pålitlig plugin för AMP.
  • För närvarande är AMP inte en rankingfaktor för mobila SERP. Ja, det kan vara häftigt och fantastiskt för ett nyhetsförlag att rankas under rubriken så kallade ”Top Stories”. Men hur är det med en ny blogg? Är det värt att ta risken för AMP?
AMP is not a ranking factor

Varför tog jag bort AMP från min blogg? – Stora anledningar

Bara några dagar efter att ha installerat AMP-pluginet fick jag ta itu med många frustrerande problem. Så jag var mycket besviken och bestämde mig för att ta bort det. Nedan finns några länkar till anmärkningsvärda problem.

Referensc: Lista över problem som jag stötte på med AMP for WP-plugin

  • https://wordpress.org/support/topic/facing-redirection-loop-non-slash-to-slash/
  • https://wordpress.org/support/topic/is-showing-different-in-amp/
  • https://wordpress.org/support/topic/missing-trailing-slash/
  • https://twitter.com/TheGulshanKumar/status/827897651282706432

Jag var till och med tvungen att åtgärda AMP-frågor sida för sida så långt jag kunde upptäcka –

  • Jag märkte att Google AdSense inte fungerar bra i AMP.
  • När du har långa innehållssidor blir det tråkigt att kontrollera om varje element på webbsidan fungerar korrekt eller inte. Jag blev rädd när jag såg att några av mina iframes för YouTube-videor inte fungerade. Slutligen fixade jag det också genom att lägga till några nödvändiga JS, för ett ögonblick var det okänt.

Hur inaktiverar man AMP-sidor för WordPress?

Gyllene regler

Det är inte bara att avaktivera ett AMP-plugin och tro att du är klar.

Omdirigera inte från AMP till permalänkar som inte är AMP när AMP-sidor fortfarande indexeras i SERP. Annars kommer din organiska besökare att se ett fel.

AMP error
AMP suger på många sätt och detta är ett av dem hur svårt det är att välja bort det.

Konceptet bakom lösningen för att inaktivera AMP utan fel 404

Som vi vet upptäcker Googlebot AMP-sidor med hjälp av länken rel="amphtml" i webbplatsens rubrik.

Som tur är har den här markeringen inget direkt att göra med mänskliga besökare. Så vi kan ta bort den för att tala om för Google, jag menar Googlebot, att vi inte har någon AMP-version av webbsidan. 🤷

Under tiden som Google avindexerar sidor kommer vi tillfälligt att fortsätta att visa AMP-sidor för våra besökare genom att hålla vårt AMP-plugin aktivt.

Under diskussionen om detta heta ämne fanns den viktigaste frågan i vårt sinne.

Vad händer om Google betraktar sidor i AMP-versionen som duplicerade webbadresser för kanoniska sidor?

Naturligtvis beror det på att vi har tagit bort relationsmärkning. Baserat på detta koncept rekommenderar jag starkt att du använder NOINDEX för att ta bort AMP-sidor från Google Search.

För att inaktivera AMP-sidor på rätt sätt utan att påverka SEO behöver du bara följa två viktiga steg:-

  1. Först tar du bort länken rel="amphtml" från de sidor som inte är förampade.
  2. Ange NOINDEX för AMP-sidor

Intressant, eller hur? Låt oss gå in på praktiska detaljer steg för steg.

Rekommenderad metod för AMP-användare

AMP official
  • Inaktivera och radera AMP-plugin.
  • Install and activate AMP for WP plugin (This will make process easier)
  • Gå till Avancerade inställningar för AMP för WP
  • Aktivera ”Change End Point to ?amp” (Ändra slutpunkt till ?amp) för att återställa den officiella permalänkstrukturen för AMP-plugin.
  • I de avancerade inställningarna, ser du textområdet för Ange HTML i huvudet? Ange koden nedan.
<meta name="robots" content="noindex,follow"/>
  • Till sist, bläddra ner till slutet av sidan och aktivera ”Dev Mode in AMP” (Utvecklingsläge i AMP).
  • Behåll denna status i 7 dagar tills alla AMP-sidor försvinner från SERP.

Rekommenderad metod för AMP för WP-användare

amp for wp
  • Installera och aktivera AMP för WP-plugin
  • Gå till Avancerade inställningar för AMP för WP
  • Ser du ett textområde för att skriva in HTML i huvudet? Skriv in koden nedan för att inte indexera AMP från SERP.
<meta name="robots" content="noindex,follow"/>
  • Rulla ner sidan och aktivera ”Dev Mode in AMP”.
  • Behåll denna status i 7 dagar tills alla AMP-sidor försvinner från SERP.

Det är allt. Detta är ett korrekt SEO-vänligt sätt att bli av med AMP.

FYI: När du aktiverar dev-läget tas rel=”amphtml” automatiskt bort. 😎


Gammal metod för AMP för WP-användare

Steg 1. Ta bort rel=”amphtml” från huvudet

Med RegEx kan du matcha strängen och ersätta den med önskat värde (som är tomt). Jag tror att detta är det enklaste sättet att ta bort rel="amphtml" från WordPress HTML-utdata.

Med enkla ord, med nedanstående smarta steg kommer vi att skanna AMP-markering i HTML-sidorna i WordPress, vi kommer att ta bort den i farten med hjälp av Search & Replace via RegEx.

Regular Expressions
Validerade reguljära uttryck

Process

För att ta bort rel="amphtml"-länken från huvudet går du till de här stegen.

  1. Installera och aktivera ett mycket användbart insticksprogram som heter Real-Time Find and Replace. Med det här insticksprogrammet kan du dynamiskt (dvs. när en sida genereras) ersätta kod och text från teman och andra insticksprogram med kod och text som du själv väljer innan en sida levereras till användarens webbläsare.
    real time find and replace
  2. Gå till Verktyg > Real-Time Find and Replace
    Real Time Find and Replace Settings
  3. Kontrollera Use Regex
  4. I fältet Sök skriver du exakt <link rel="amphtml" href="(.+)" >
  5. Lämna fältet Ersätt tomt i fältet Ersätt.
  6. Uppdatera inställningar. Det är allt.
    remove AMP rel markup

Vi är tacksamma mot författaren, detta insticksprogram sparar vår värdefulla tid.

Steg 2. Konfigurera NOINDEX för AMP-sidor

Detta är ett viktigt steg för att undvika indexering av duplicerat innehåll eftersom vi i de senaste stegen har tagit bort rel="amphtml" från webbplatsens rubrik.

  1. Öppna inställningarna för AMP för WP-plugin
  2. Gå till SEO
  3. Lägg till nedanstående metakod i huvuddelen
<meta name="robots" content="noindex,follow"/>
noindex amp

Den här processen påverkar inte rankningen av dina kanoniska sidor (Non-AMP).

Alternativt kan du lägga till nedanstående utdrag med hjälp av insticksprogrammet Code Snippets.

// remove rel="amphtml" added by AMP for WP plugin
add_filter('ampforwp_modify_rel_canonical', 'prefix_remove_amphtml'); function prefix_remove_amphtml($amphtml){ return; }

// set noindex for AMP pages
$url = "//{$_SERVER['HTTP_HOST']}{$_SERVER["REQUEST_URI"]}";
if (preg_match("#/amp/#", $url))
{
	header( "X-Robots-Tag: noindex, follow", true );
}

Hur kontrollerar man Noindex-status för AMP?

Här är det enklaste sättet –

  1. Gå till Google.com
  2. Sök som https://www.gulshankumar.net/se/*/amp/

När du har följt ovanstående process måste du hålla din AMP-plugin aktiverad tills du ser 0 indexerade AMP-sidor i sökningen.

Saker att göra efter 7 dagar när AMP-sidor inte längre indexeras

Tack för att du har läst den här artikeln hittills. Jag uppskattar verkligen din värdefulla tid. Om du behöver någon brådskande hjälp när det gäller borttagning av AMP-sidor eller behöver en lösning för det anpassade tillvägagångssättet. Tveka inte att diskutera i kommentarsfältet. Nästa ögonblick kommer jag att vara där med dig för att hjälpa dig. Tack!

Denna metod är testad och fungerade för mig. Jag är lyckligt lottad, den här guiden har uppskattats av författaren till Marketing91, The Kinsta Blog med flera.

feedback
kinsta feedback
11 Sep 2017, https://kinsta.com/blog/disable-google-amp/

✅ Hur inaktiverar man irriterande AMP som användare? 🤔

Använd webbläsaren Firefox och inte webbläsaren Google Chrome.

✅ Hur förhindrar jag att 404-fel visas för AMP-sidor i Google SERP?

Du gjorde antagligen fel genom att bara avaktivera insticksprogrammet i hopp om att AMP nu inte kommer att visas i Google. Det är inte rätt sätt. Du måste ta bort amphtml-taggen från källkoden och noindexera AMP-sidor.

✅ Vilka är de viktigaste skälen till att jag bör undvika att använda Google AMP?

AMP förstör design av webbsidor. Det ökar det extra arbetet som du bättre kan investera i andra produktiva saker som att skriva artiklar och tjäna pengar.

✅ Förbättrar AMP PageSpeed? 🚀

Det är bättre att göra sidan snabbare än att förlita sig på ett insticksprogram, eftersom det kan innehålla buggar och säkerhetsproblem.

✅ Är AMP en Google Ranking Factor? 📈

Googles viktigaste uppgift är att visa relevanta svar på sökfrågor. Det spelar ingen roll om du använder AMP eller inte. John från Google har officiellt bekräftat att det inte är en rankingfaktor.

✅ Hur lång tid kan det ta för Google att noindexera alla AMP-sidor?

Det kan ta några veckor att behandla begäran om noindex.

WordPress List - Subscription Form
Vill du ha mer?
Föreställ dig att du får handledningar varje dag! Det är helt otroligt häftigt. Prenumerera nu.

Lämna en kommentar

154 svar på ”Inaktivera AMP i WordPress på ett SEO-vänligt sätt”

  1. This is one of the best and most useful tutorials i have read on removing amp. I did not remove amp till date even with its poor performance in ads and earnings because I was afraid of the 404’s it will result in. But with this method I will surely remove it asap. Thanks a lot Gulshan for this brilliant method.

    Svara
  2. Hi, Thanks for sharing your valuable thoughts on this article. I am trying my best to keep this article simple and easy to follow for everyone. Thanks.

    Svara
  3. Thank you so much for sharing the clear tutorial about remove the AMP totaly.

    I will gothrough your article and try it on our website.

    Keep sharing more wonderful articles.

    Svara
  4. Hey Gulshan, great post!
    I haven’t WP AMP but AMP plugin from Automattic.
    So could i add

    by Yoast SEO AMP settings?
    Yoast permits to add Extra code in .

    Svara
  5. Hello Gulshan,

    Thanks for this detailed post. I have also installed the AMP on my blog after reading various articles online. But Its really a hefty job to configure everything especially the error I received in my Google webmasters account. It is so time consuming job. After that I remove the AMP and installed a responsive WordPress themes. Its works great on desktop and mobile devices too. Thanks again for sharing these great insights.

    Have a great day 🙂
    Vishwajeet

    Svara
  6. What a great post this is.

    Waiting for more articles,

    Good luck bro! Please fix comment box bug it gets disappear when we tried to write a comment.

    Svara
    • Thanks dear, I will make sure to add more articles in coming days. Also, I will fix the comment box issue. Thanks for reporting about it.

      Svara
  7. I wasn’t aware of these steps.

    I simply deleted and deactivated AMP Plugin. It impacted traffic, but is stable now.

    AMP does not look good and as you said it showed a lot of error in search console.

    Svara
  8. Hi Bro,

    I have done it above section post, and suceesfully done it on my website.

    I like to know after Amp pages removed successfully

    1) Shall i remove Amp Plugins Completely ?

    2) And also shall i remove the Real-Time Find and Replace Plugin also in plugin section ?

    Can you clarify the above two doubts bro ?

    Thank you

    Svara
  9. Hi Gulshan,

    Thanks for your informative blog! I have done the steps mentioned above, I’m currently in a waiting game with Google to de-index the AMP pages.

    How would I know if all the pages were de-indexed completely? Just webmaster tools? Can I disable the Mobile redirection while waiting for Google to de-index the AMP pages?

    Svara
  10. Hi,

    thanks for your tutorial!

    Yesterday I removed AMP completely from my site. To be fair, it brought a lot of traffic, but in the end the monetarization is really bad.

    I hope it will not impact my traffic that much, but maybe I’m happier now with my beautiful RESPONSIVE theme.

    Svara
    • Hey sahil,
      AMP provide a light version of your website, as you know loading speed is a very important factor for ranking and because it increases loading speed then surely it will affect your rankings.

      P.S. : AMP sites are also given priority by Google.

      Thanks.

      Svara
  11. Hi Gulshan, I wish I found this blog post earlier before disabling the amp plugin. I disabled it and let the google bot cache the 404 pages of the non existing amp pages because that is what is suggested by google when I read the in developers.google.com. The problem now is my ranking dropped and googlebot slows down on crawling the site. I reinstalled the amp plugin again to see if the ranking will go back again. Do you think what I did is right? Do you have any tips on how to bring back my ranking? Thanks in advance.

    Svara
    • Hi Manny,

      I think, Your ranking dropped because you followed a single wrong step which was – removing AMP plugin directly. You could have noindex your AMP pages gracefully. If Google list 10 search results for any query, you remove AMP plugin, what will happen? User will simply land to error 404 page. They will pick another result. Eventually, ranking will drop.

      That’s why I say, never ever directly remove plugin or even try to setup any kind of redirect – because it will NOT work.

      Instead, focus on noindexing AMP pages properly, if you don’t want to loose ranking and traffics.

      What you can do right now? Let me highlight some points
      Step 1. Keep installed AMP for WP Plugin, till AMP pages are not noindexed automatically by Google.
      Step 2. Set noindex using meta tag in the plugin settings
      Step 3. Remove rel=”ampthtml” link as I described above.
      Step 4. Wait at least a week. Keep eye on the AMP status via Search Console.
      Step 5. Update your site regularly, this will encourage Googlebot to crawl regularly.
      Step 6. Once AMP is noindexed, and you don’t see any AMP results for your website in the mobile serps, then feel free to remove AMP plugin, do whatever you want. But, don’t remove AMP without properly noindexing.

      Hopefully, you will recover your ranking back.

      Thanks & Regards,
      Gulshan

      Svara
  12. hello sir i have noticed that your blog image is only 13 kb when its size is 713*429. but when i creat a jpg image even 300*200 its is more than 50kb . please give me some tips to reduce image size.

    Svara
  13. Hi Anoop,

    To keep image size in the control,
    * Do not use many colors
    * Choose right format such as PNG for illustration, JPG for real image
    * After then, I prefer to compress using ShortPixel or TinyPNG.

    I hope this helps.
    Thanks

    Svara
  14. Thanks Gulshan for this great tutorial !!

    Google took 20 days to no-index all my AMP URL’s.

    Today I redirected all AMP URL’s to Non-AMP URL’s by following your htaccess method.

    They are working fine. Thanks.

    Svara
  15. Thanks for posting this excellent tutorial. I followed your instructions and I think I’m heading in the right direction as far as disabling AMP is concerned. I had just 1 AMP page indexed to begin with … it seems like the AMP for WP plugin was generating tons of errors in Search Console all along and for that reason Google could not index any AMP pages.

    This is what I had yesterday:

    Indexed AMP pages: 1
    AMP pages with critical issues: 3152

    And today I have:

    Indexed AMP pages: 0
    AMP pages with critical issues: 1756

    I deactivated the AMP for WP plugin after seeing 0 Indexed pages but what concerns me is that in Search Console it is still showing AMP pages with critical issues: 1756. Why do you think that is? If no pages are indexed, It should have been 0 right?

    Not sure if I deactivated the plugin too quickly?

    Also, after deactivating the plugin when I go to

    http://www.example.com/amp/

    it takes me to the main page of my website but in the URL bar I can still see

    http://www.example.com/amp/

    instead of only

    http://www.example.com/

    ?? Why do you think that might be?

    This was the case before I set up redirection in my .htaccess following your instructions… and it is still doing the same thing after the redirection code has been implemented …

    Do you have any idea why this might be happening?

    Thanks again for your thoughts.

    Best,

    Svara
  16. Thank you so much for this evergreen content. You have saved me the stress of trying to enable Adsense ads and other affiliate ads on my AMP blog. I just finished following the instruction above. Now my only problem is that I didn’t implement the AMP successful so some of my blog posts are not indexed on AMP page but are still ranking high on Google. Hope it won’t affect my traffic after resubmitting my sitemap.

    Svara
  17. Hello, thank you for your great tutorials. I think this is the best article I’ve found so far since I am a beginner.

    I noticed that I made a mistake by directly deactiving and removing the plugin without considering your steps above. Will it affect on my website’s performance?

    Then how could I fix the errors I found on the Google Console about the AMP errors after I deleted the plugin?

    I would be very happy if you are willing to help me.

    Thank you 🙂

    Svara
  18. I’m so glad in finding this useful content, thanks to the author – I noticed that ever since I activated AMP, my Adsense revenue decreased automatically, I hardly earn 3 dollars a day, I was wondering.

    Until I found out it was AMP, but then I was afraid to deactivate it because of 404 error.

    I’ve followed the process, by 4 days I will check back and see.

    Thanks.

    Svara
  19. Do AdSense has anything related to AMP? If yes, how? I have seen so much shout out om AdSense users getting lesser price of ads

    Svara
  20. Thanks for the post. Great work 🙂
    I have a big trouble, before know about this post I had sent an email to the developers of the plugin. Misteriously I can’t clic in any tab to complete the Step 2. The tab (Inn settings) doesnt work, like freeze.

    Can you help me please?

    Svara
  21. Hello your article is a lifesaver. Recently I removed amp from a blog and it ended with 404 error (from google amp domain).

    But I am using your steps as

    1. removing amphtml tag
    2. making noindex to ensure google won’t index the amp version.

    Let’s see if this works. (I know it will)

    Cheers! good work.

    Svara
  22. Dear friends, this is a great article, I used to disable one of my sites. Great.

    I have a big trouble with another one. The plugin create a technical problem, I can’t access to the plugin panel and clic the tabs (freezing). I sent several emails to the developers but I haven’t any answer (the price to have a free plugin).

    I’m wondering If I can delete the plugin, no more options. I’m afraid to loose google ranking (I will start again) and duplicate pages.

    What do you think, could you give some ideas? I’m dummy in this field, I’m a single writer.

    Thanks a lot, Marcelo

    Svara
  23. Really thanks to write this posting. It helps to know why my adsense income decrease 90% suddenly after installing amp system.
    I would like to know that after all process(including deactivating and deleting AMP for-WP Plugin), is this okay to delete [Real-Time Find and Replace plugin]?

    Svara
    • Hi Mika,
      Once you know that your pages has been removed from the SERPs, please feel free to delete Real Time Find & Replace & AMP plugin also. 🙂
      All the best!

      Svara
  24. Hi Mika,
    Once you know that your pages has been removed from the SERPs, please feel free to delete Real Time Find & Replace & AMP plugin also. 🙂
    All the best!

    Svara
  25. Hello GulshanKumar,
    I installed AMP for WP plugin on my site. But still it’s not showing on Google.

    Please help.

    Svara
  26. Hi, Just now I submitted my AMP sitemap for non-indexing, after following the steps mentioned. Must say, your tutorial is awesome with clear instructions and images to understand it better! Just perfect for non-techies like us.
    However, just now I checked the Google search console and found this message : ”Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.”

    Now, what it means? And also, Google search console is displaying ”Your page is not mobile friendly”

    Is it okay?

    Please help!

    Svara
  27. Thanks for the Post. I have just followed the same to deactivate the AMP on my blog. Waiting for the reindexing of google crawl of my pages.

    Svara
  28. Thanks for the Post. I have just followed the same to deactivate the AMP on my blog. Waiting for the reindexing of google crawl of my pages.

    Svara
  29. Hi,
    Thanks for sharing this information.
    But what if I have already deleted the AMP plugin? Should i reinstall it and follow the process mentioned above?

    Svara
  30. bhai mujhe pahle pata nhi tha or maine direct ampplugin remove kar diya jisse meri site ka bura haal ho gaya hai. real time to maine active kar diya but kya AMP bhi dubara install karna pdega ? please bro tell me

    Svara
  31. Hi Gulshan,

    Thank you very much for making it so simple. I was thinking of removing AMP for a long time but like all, I was afraid of negative SEO effect. I don’t see any negative effect, on contrary, I see the positive effect but due to other factors like topical search increase.

    Thanks again.

    Svara
  32. Hey Gulshan,

    Thanks a bunch for the step by step guide, but i think i might need some extra help.

    I currently have many canonical pages indexed, and after installing AMP for wordpress, 95 of them are now indexed as AMP pages on only mobile serps.
    How do I deindex the amp version only? While keeping the canonical versions indexed?

    Here’s how i put myself in this position –
    1. Installed Amp for WordPress, not AMP for WP (not sure if this make a difference)
    2. After 5 days, now 95 pages on only mobile serps are indexed, which decreased traffic by alot
    3. I deactivated and deleted plugin from wordpress without doing much research which was stupid

    Then I followed your steps above:
    1. Removed rel=”amphtml” using plugin
    2. Installed AMP for WP plugin, not the AMP for WordPress plugin which i originally installed (not sure if this makes a difference)
    3. Input

    Any help is appreciated.

    Svara
  33. I have used this method to remove amp pages. But now if I want to switch back to amp again, what are the required steps? Please provide the procedure for that.

    Svara
    • To switch back to AMP,

      1. Deactivate and Delete Real Time Find and replace plugin
      2. Remove meta noindex tag from the head section of AMP plugin.

      Done.

      Svara
  34. To switch back to AMP,

    1. Deactivate and Delete Real Time Find and replace plugin
    2. Remove meta noindex tag from the head section of AMP plugin.

    Done.

    Svara
  35. I have Followed this article step by step and it’s have been 5 day’s since i deindex amp url but iam not seeing any deindex on my google search console account plz help iam getting lots of problems due :pensive: to amp.

    Svara
  36. Hey Gulshan, thank you for the great post!
    I don’t use WP AMP but AMP plugin from Automattic.

    Where can I put the meta code () because I have no SEO Tab in the AMP Plugin.

    Please help me!
    Tanks in advance!

    Svara
  37. 85% bounce rate & 85% exit rate when compared to non-amp pages.

    traffic declining gradually.

    1st-time enabled traffic lost unusual disabled amp and updates disavow links

    for disavowing links traffic decreased by 50% and after amp deactivation traffic went 5% to 50%.

    Svara
  38. it was very helpful
    my adsense earning was going down from last 3 months
    after applying these changes earning has been restored within week

    Svara
  39. I’ve tried this method and it works quite well I suppose, but it’s been more than 4 days and not all the AMP pages have been deindexed. What do I do? I’m losing on Adsense revenue since AMP decreases my RPM and CPC.

    Svara
  40. Hi Gulshan,

    I was using amp using newspaper theme’s provided amp support. It created amp pages with /?amp/ url pattern rather than /amp/. I am trying to remove amp now completely. It there any way i can make a 301 redirect using my htaccess to redirect to non amp pages?

    Svara
  41. Hello!

    You may setup a Redirection rule

    From
    /(.*)/(.*)?amp(.*)

    To
    https://example.com/$1

    As discussed earlier.

    Thanks & Regards,
    Gulshan

    Svara
  42. Hi, i amp-ed my site few days ago, but none all of my is index in google page. However, it is still indexed in Google webmaster, showing all the errors.
    I have deactivated the amp plugin, will it affect SEO?

    Svara
  43. Worked for my site, thanks for updating the post, please update the AMP for WP aspect. As of the time of this comment, the AMP for WP plugin developers have made some changes.

    Svara
  44. Currently I am still using AMP and I have experienced a bad Speed ​​Index drop in PSI both in page views and in posts.

    Unlike the non AMP displays all work fine close to 100%.

    I want to ask before releasing the AMP, is there any effect on the PSI speed index on AMP? why did it make such a bad number? and how to optimize it?

    If not, in 2021, is AMP still important to use?

    Svara
  45. Hai Gulshan as per your article I have decided to remove ampforwp so I have done the redirect to deindex the posts, but its more than 15 days still some amp posts are showing up in google search. So how to proceed further can I deactivate the ampforwp plugin.

    Svara
      • Sorry gulshan by mistake I have typed as redirect instead of noindex, its more than 15 days still 10 posts are showing in search console as AMP.

        As per your advice I have checked in this format /*/amp with my website, it shows 4 to 5 posts from that only 2 are showing as AMP when I checked that posts it goes to the AMP homepage. Can you please tell me how to proceed further. Thank You

        Svara
  46. I am looking to remove the ampforwp plugin, found this helpful article. Thanks, Gulshan for an informative article. But, here comes the actual issue, I have also found an article from the actual plugin authors at their website to remove their own plugin. The difference is have found is that your article suggests adding the code in the ”Enter HTML in Head” section present in the advanced section of the plugin. But the author’s article shows that to add the code in the SEO section present in plugin. Their article does not mention enabling the dev mode. I am a bit confused now on which article to follow. I don’t want to have any issues on removing amp. What do you suggest?

    Svara
    • To properly remove AMP,
      Day 1
      1. You must add suggested noindex meta tag in head. This will hint Google you don’t want to show AMP.
      2. Last, we need to rel="amphtml" markup from head to cut the link of AMP from the non-amp pages. There are many ways to do this. Either enable dev mode, use Real Time Find Replace or snippet. However you do, it’s important.

      Day 7
      3. Now, you should add redirect from AMP to Non-AMP pages. (This is not mandatory, optionally recommended to avoid 404 for the old AMP slug).

      Svara
      • Thank you for this. AMP ”seemed” like a great idea for a client at first. However, after AMP started to show more than the original page, ad revenues dropped, and this is not ideal. Hopefully, Google figures out another way because this is worse.

        Svara
  47. Happier to don’t use AMP..

    Thanks bro..
    I also want to remove it from GWM. Its seem Google bot still always crawling on my entire ?amp page..

    Svara
  48. Hi! Thanks for the tutorial!!!
    If I follow the new method for AMPfor WP users, should I still redirect from AMP to no-amp after a week?

    Svara
  49. Hello Gulshan,

    I was using newspaper theme with their inbuilt AMP plugin and mobile theme.

    After removing AMP i installed wp for amp and followed both steps

    I have enabled ”Change End Point to ?amp”
    And in advanced settings,entered HTML in Head as you mentioned.

    My questions are:

    After that do I need to disable amp ads in Adsense?

    When should I deactivate amp for wp plugin? after 7 days?

    Svara
    • 1. To avoid losing Advt revenue, you can keep AMP ads as long AMP for WP plugin is active for the noindex process.
      2. Yes, after 7 days or when AMP version page doesn’t appear in the SERPs.

      Svara
  50. Hi Gulshan,

    Thank you for giving me some solid reasons to remove AMP from my website, which I really wanted to do so.

    I’ve removed the AMP from my website successfully without any errors or problems!

    Here’s a #tip for others wanting to remove AMP easily:

    1. Open the AMP’s Pluging Settings.
    2. Switch to Supported Templates tab.
    3. Now, uncheck all the “Content types enabled for AMP” options.
    3. Hit the save button.

    What will happen then?

    Unchecking to all will set up a permanent 301 redirect of AMP-enabled pages to Non-AMP pages, and that happens without any errors.

    What do next?

    Just wait for some days when you find your Search Console shows 0 AMP pages indexed.

    Then disable the AMP plugin from your WordPress website.

    And that’s all!

    I hope this helps you!

    Thanks and regards!
    Deepak Gupta, Techshali.com

    Svara
  51. Hey, i am stuck in between as I don’t know where I can add the code you provided to add in the CODE SNIPPET plugin. I’ve installed the plugin and can see 5 options: Example HTML shortcode, Example CSS Snippet,Example JavaScript snippet, Order snippets by name , Order snippets by date.
    Can you briefly explain where can i add the code?

    Svara
      • In HTML section.
        Also can you tell me why is the code snippet plugin used?
        Can I use redirection in place of that?
        Also thankyou for the help 🙂

        Svara
        • Not in HTML section. In fact, you can delete all those examples code which comes by default. It is just a demo by Code Snippet. Not useful.

          For noindexing AMP pages, you can place code snippet this way – https://i.imgur.com/RSCgjj9.png

          I do not suggest redirection. You can do [only] once AMP pages are gone.

          Svara
          • Thanks. So, should I delete the redirection plugin directly?
            Also, when can I delete the Code Snippet plugin? after one week or never?

          • There is no role of Redirection at the moment.
            You can delete Code Snippet plugin after deactivating AMP plugin after one week.

          • Thanks for the help.
            I have added the code. Can you tell me what now should I do, I have completed all the steps but can’t see any changes? And can I delete the code snippet plugin when the amp will be completely removed?

  52. Thank you for your post. Are there any other settings in AMP that need to be clicked other than the Dev? For example, I noticed on te Search Result Page in AMP and Category Description are set to ON. Should they be?

    Svara
  53. Hey, i tried removing the amp for the site. I noticed that the amp pages are not decreasing in the past few days.
    Can you suggest to me what should I do now? It’s been more than a week since i follwed the steps.

    Svara
  54. Hello sir,
    In fact I have tried AMP plugin for 2 times, but as it was giving error in Google Search Console. I removed it by deactivating it. But didn’t followed these mentioned steps. Do I have to install it once again. As such I don’t want AMP version of my blog.

    Thanks in advance!
    Akhilesh

    Svara
    • Hi Akhilesh,
      Thanks for your comment at my Remove AMP article.

      May I know, what is the error message in your Search Console? So I can help you out.

      Thanks & Regards,
      Gulshan

      Svara
      • Hi,
        There are 3 errors showed in GSC which are being shared respectively-
        1. Only amp-boilerplate and amp-custom ’style’ tags are allowed, and only in the document head.
        2. Custom JavaScript is not allowed.
        3. Disallowed attribute or attribute value present in HTML tag.

        Since I am not too much technically sound about reasons why errors which are being showed in Google Search console are displayed. So I just gets them disabled.

        Thanks in advance!

        Svara
  55. I used amp-wp plugin first but it produced just blank pages and then i switched to amp official plugin. So I donot want to go back to the amp-wp plugin – in this case what is the choice

    Svara
  56. Waw this is what i need i want remove my AMP page but afraid SEO effect…
    But bow im confidence to remove my AMP plugin…
    Sorry for my broken English and Thanks

    Svara
  57. Hi Gulshan. Great article you have here.

    I’ve done removing rel=”amphtml” and add nofollow meta tag.

    But i have one doubt. My site is using 404 to 301 plugin, is it alright if i install Redirection plugin right away?

    Do these two plugins will conflict with each other or not?

    Svara
    • Avoid nofollow, use noindex as per article. Cannot say anything about 404 to 301 that’s a different thing and not recommended.

      Svara
  58. I switched my blog for amp few months ago. After a months I deleted plugin without thinking of SEO. It hurt my blog on SERP. Very bad experience. Your detailed post will help people not to take risks as I did with my blog.

    Svara
  59. Hi Gulshan, I’ve tried the tutorial on this post, and it works perfectly.

    But i has a little problem: out of 200 AMP pages, there’s still 7 pages that has deindexed yet.

    Pic: https://i.ibb.co/w0ngTjT/IMG-20210813-090834.jpg

    I’ve waiting for 1 month, but the number still same.

    Here is the question.

    1. Is this normal?
    2. Is it alright if i delete AMP for WP plugin now?
    3. Do i need to redirect those 7 pages using Redirection plugin?

    I wanna hear your advises.

    Svara
    • Hi Alfiant, Please give it sometime. There is no side-affect of leave AMP plugin for a while when noindex is process is underway. Thanks!

      Svara
  60. This article is totally confusing. You need to elaborate; you need to explain more. You understand what needs to be done, but you’re explaining it terribly.

    Svara
    • Please read article more than once, maybe twice or thrice. I am sure, you will be able to understand.
      All steps are clearly written in seperated heading. Feel free to ask if you’ve any specific question. I am always ready to help.

      Svara
  61. Thank you so much for this article! easy to read and understand for average webmaster. This really help me when I want to remove this AMP headache.

    Svara
  62. Thanks this has been a very helpful guide! I disabled AMP and found that I lost traffic because I no longer appeared on google Discover. Turns out this was feeding me about 15-20% of my traffic. However, leaving AMP has increased my ad earnings quite substantially so I think I am ahead from an earnings POV. However, I really wish there was a way to enable AMP specifically to appear on Google Discover. Any suggestions?

    Svara
  63. Thanks for the valuable tips. Followed the steps under ”Recommended method for AMP for WP Users”. Now no AMP indexed pages on Search Console (it took 3 weeks to go them away). But on Google searches some AMP pages appear. Example:
    https://example.com › blog1 › amp › page
    What to do next?

    Svara
  64. Hello🙏 sir
    Sir Maine 18 March ko AMP Disable karne k liye no index ka process kiya tha. Ajj 21 March ko maine Google search console me AMP pages check kiye usme 7-8 page abhi bhi index ho rahe hai.
    Lekin maine jab Google AMP testing tool me apni sit ko check kiya to usme AMP invalid dikha raha hai to bhai kya ham redirection wale process karne k liye tyar hai.

    Svara
  65. Enjoyed reading the article above, really explains everything in detail, and the article is very interesting and effective. Thank you and good luck with the upcoming articles

    Svara