Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come disattivare correttamente Google AMP in WordPress

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete disabilitare Google AMP sul vostro sito WordPress?

Molti blogger e siti web che sono saliti sul carro di Google AMP lo stanno ora disattivando per diversi motivi. Le pagine AMP hanno conversioni, visualizzazioni di pagine e coinvolgimento generale inferiori. Inoltre, l’ultima versione di Google Analytics non supporta Google AMP.

In questo articolo vi mostreremo come disabilitare correttamente Google AMP in WordPress.

How to disable AMP in WordPress

Perché si dovrebbe disabilitare Google AMP in WordPress

Accelerated Mobile Pages (AMP) è un’iniziativa open-source per rendere il web più veloce per gli utenti mobili e migliorare l’esperienza dell’utente.

Lo fa servendo pagine con HTML e JavaScript ridotti al minimo. Ciò consente al contenuto di essere ospitato nella cache di Google AMP. Google può quindi servire questa versione memorizzata nella cache agli utenti quando fanno clic sul vostro link nei risultati di ricerca.

Tuttavia, se avete scelto di impostare Google AMP in WordPress, potreste pensare di aver fatto la scelta sbagliata.

Non siete soli. Molti proprietari di siti web, influencer e pubblicazioni online hanno smesso di utilizzare AMP sui loro blog WordPress.

In primo luogo, esamineremo i motivi per cui potreste prendere in considerazione la disattivazione di AMP sul vostro sito web WordPress e poi vi illustreremo la procedura da seguire.

Google Analytics 4 non supporta AMP

Google Analytics 4 o GA4 è l’ultima versione di Google Analytics che tiene traccia del vostro sito web e delle applicazioni mobili nello stesso account. Apporta numerosi cambiamenti, tra cui nuovi metodi di tracciamento, funzioni di reporting, metriche e rapporti.

Tra questi cambiamenti c’è il fatto che GA4 non supporta ufficialmente AMP al momento e non è confermato se funzionerà in futuro. Uno dei motivi è che tiene traccia dei visitatori del sito web e dell’app nella stessa proprietà.

Tuttavia, Google ha dichiarato che sarà possibile accedere ai vecchi dati nella proprietà Universal Analytics solo fino al 1° luglio 2024. Ciò significa che è ancora possibile accedere ai rapporti di Universal Analytics per visualizzare i dati passati, ma non sarà ancora possibile tracciarli nella versione più recente.

Drastico calo dei tassi di conversione

Google AMP impone molte restrizioni su HTML/JavaScript. Ciò significa che molti elementi interattivi del vostro sito web WordPress vengono a mancare con AMP, come i moduli optin e i popup di uscita.

Di conseguenza, i proprietari dei siti non possono incoraggiare gli utenti a iscriversi, a compilare i moduli di contatto o ad acquistare prodotti.

Minori visualizzazioni di pagine da parte degli utenti mobili

AMP non mostra le barre laterali del sito o altre funzioni di scoperta dei contenuti. Ciò provoca un calo significativo delle pagine viste dagli utenti mobili.

In effetti, alcuni esperti di esperienza utente suggeriscono che il pulsante di chiusura in alto incoraggia gli utenti a tornare alla ricerca di Google dopo aver letto il vostro articolo, invece di navigare nel vostro sito web.

Close button on amp pages

Minore coinvolgimento degli utenti

Molti siti web si basano sulle interazioni con gli utenti, come i widget click-to-tweet, le valutazioni degli utenti, i commenti e così via. Google AMP rende piuttosto difficile per i proprietari di siti web mantenere gli utenti impegnati e interagire con i loro contenuti.

Dovreste disattivare Google AMP?

La risposta a questa domanda dipende dal vostro sito web. Se gli utenti mobili costituiscono la maggior parte del vostro pubblico, potreste comunque voler utilizzare AMP.

D’altra parte, se avete provato Google AMP e ha influito negativamente sui vostri tassi di conversione, probabilmente dovreste disabilitare Google AMP sul vostro sito web.

Contrariamente a quanto si crede, Google non penalizza i siti web che non utilizzano AMP. Potete comunque migliorare la velocità e le prestazioni del vostro sito web su mobile per competere con il pubblico della ricerca mobile.

Tenendo presente tutto ciò, vediamo come disabilitare AMP sul vostro sito WordPress.

Disabilitare i plugin di Google AMP in WordPress

Non tutti utilizzano gli stessi plugin di WordPress per aggiungere il supporto AMP ai propri siti web. Tuttavia, le impostazioni di base rimangono le stesse indipendentemente dal plugin utilizzato.

La prima cosa da fare è disattivare il plugin AMP installato.

È sufficiente visitare la pagina Plugin ” Plugin installati dalla dashboard di WordPress e fare clic su “Disattiva” sotto il nome del plugin AMP.

Deactivate the amp plugin

La semplice disattivazione del plugin disabilita il supporto AMP sul vostro sito web. Tuttavia, ci sono altri passaggi da seguire per garantire che il vostro sito sia privo di AMP.

Impostazione dei reindirizzamenti per le pagine AMP

La disattivazione del plugin AMP rimuove la versione AMP degli articoli dal sito web. Tuttavia, questo da solo non è sufficiente, soprattutto se AMP è attivo da più di una settimana.

È molto probabile che Google abbia già indicizzato quelle pagine e continui a mostrarle nei risultati di ricerca. Se un utente fa clic su una di esse e voi l’avete rimossa dal vostro sito, troverà una pagina 404, poiché quel contenuto è ormai scomparso.

Per risolvere questo problema, è necessario reindirizzare gli utenti che arrivano alle pagine AMP alle normali pagine non AMP.

Vi mostreremo due metodi diversi per impostare i reindirizzamenti per Google AMP, prima usando un plugin e poi usando il codice. Potete scegliere quello più conveniente per voi.

Metodo 1: Utilizzo di un plugin di reindirizzamento

Il modo più semplice per impostare il reindirizzamento in WordPress è utilizzare il plugin All in One SEO (AIOSEO). È il miglior plugin SEO per WordPress che offre un potente gestore di reindirizzamenti.

È necessario disporre della licenza AIOSEO Pro, che include il gestore di reindirizzamento.

Innanzitutto, è necessario installare e attivare il plugin All in One SEO (AIOSEO). Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Dopo l’attivazione, potete andare su All in One SEO ” Reindirizzamenti dalla dashboard di WordPress e fare clic sul pulsante “Attiva reindirizzamenti”.

Activate redirects addon

Questo vi aiuterà a installare il componente aggiuntivo AIOSEO Redirection Manager che gestisce questa funzione. Dopo l’attivazione, si accede alla scheda “Reindirizzamenti”. Qui è possibile inserire gli URL di origine e di destinazione per impostare il reindirizzamento.

Per prima cosa, è necessario fare clic sull’icona “ingranaggio” nel campo URL sorgente e poi attivare la casella di controllo “Regex”.

Enable regex option in redirection manager

Successivamente, è possibile aggiungere il seguente codice nel campo URL sorgente:

^/(.*)\/amp

Nel campo URL di destinazione, è necessario aggiungere l’URL del sito web nel formato seguente:

https://example.com/$1

Non dimenticate di sostituire “example.com” con il vostro nome di dominio.

Enter redirection details

Successivamente, è possibile mantenere il “Tipo di reindirizzamento” come 301 spostato in modo permanente. In questo modo, gli utenti saranno reindirizzati in modo permanente alle pagine nonAMP.

Infine, fare clic sul pulsante “Aggiungi reindirizzamento” per salvare le modifiche.

È ora possibile visitare l’URL di una precedente pagina AMP del proprio sito web per verificare se il reindirizzamento funziona correttamente.

AIOSEO vi aiuta anche a tenere traccia dei link interrotti sul vostro sito web. È possibile identificare rapidamente le pagine AMP che causano errori 404 e reindirizzarle. Per maggiori dettagli, consultate la nostra guida su come monitorare le pagine 404 e reindirizzarle in WordPress.

Metodo 2: Impostare manualmente i reindirizzamenti in .htaccess

Se non volete usare un plugin per impostare i reindirizzamenti, potete configurare il reindirizzamento usando il file .htaccess sul vostro account di hosting WordPress.

Per prima cosa, dovrete collegarvi al vostro sito web utilizzando un client FTP o il File Manager di cPanel. Per maggiori dettagli, consultate la nostra guida su come usare FTP per caricare file in WordPress.

Una volta collegati, è necessario individuare il file .htaccess nella cartella principale del sito web.

Open .htaccess file

Successivamente, è possibile modificare il file nella cartella principale.

Aggiungete quindi il seguente codice in fondo al vostro file .htaccess:

// Redirect AMP to non-AMP
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]

Non dimenticate di salvare le modifiche e di caricare il file sul vostro server.

È ora possibile visitare l’URL della precedente versione AMP di qualsiasi post sul proprio sito web per verificare che il reindirizzamento funzioni come previsto.

Speriamo che questo articolo vi abbia aiutato a disabilitare correttamente Google AMP in WordPress. Potreste anche voler consultare la nostra guida definitiva alla SEO di WordPress passo dopo passo per i principianti e i migliori consigli per velocizzare WordPress.

/cta

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

122 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Sarah says

    Hi,

    Tried adding :

    // Redirect AMP to non-AMP
    RewriteEngine Aan
    RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
    RewriteRule ^ %1/ [R=301,L]

    But still lots of 404’s looking for AMP?

    • WPBeginner Support says

      We would recommend checking with your hosting provider as some have settings that need to be applied for redirects to work.

      Admin

  3. Vyom Manikya says

    After following all the steps, now I’m getting this error “Discovered – Currently not Indexed” for my non-amp pages.

  4. Loren says

    I’ve tried applying this to a site I’m working on without any luck. I’ve cleared cache and tried a handful of other things, but the redirects do not seem to be catching. Does this work for sites that google is wrapping the url in themselves?

  5. Scott Hunt says

    I installed the Redirection Plugin and followed the process. Amp was only Active on our mobile version and only showed if our website was searched, for example, Delta, and then clicked on the link. If you entered the URL in the address bar it would show our website correctly. I am at a loss!

    I know it was amp because Amp is the in URL when the website is not displayed correctly. Any advice would be sincerely appreciated.

    • WPBeginner Support says

      You would want to ensure you clear any caching you have on your site as that could be showing the cached version of the page on your site instead of the updated version.

      Admin

  6. GILL COTTER says

    I did it and it works thanks.. I was in a panic. Just one thing – a little sad looking emoji guy pops up and says ‘404 that’s an error’ just before the user is directed to the correct page. It pops up for a minute then goes away. How can I get rid of him?

    • WPBeginner Support says

      You may either need to clear your browser cache or check with your hosting provider to ensure there isn’t something causing issues with your redirects.

      Admin

  7. sai ram says

    I have removed AMP from my website but when disabled my AMP i will recieved new issue in Google Search Console as a “Referenced AMP url is not an AMP”.
    Please tell me sir how can it solved.

  8. Mustafa says

    That’s great info and help guys. Thanks a lot. Here’s my question:

    What is the right direction code or way for redirect my old website’s amp pages to my new domain’s non-amp pages?

    • WPBeginner Support says

      You would want to follow step 2 in the article and have the source URL be the old domain before the / in our recommendation.

      Admin

    • WPBeginner Support says

      We would recommend keeping the plugin active while using the redirect if you use the plugin method.

      Admin

  9. Stephen Walker says

    Hit a little snag. I have added the code you suggest to my .htaccess file. I now get an internal error 500 from the server if I am trying to access an amp post. Normal pages display correctly.

  10. Alvine says

    Thanks for the wonderful article. I wonder how one can remove just a single page from amp. Your method only explains removing all amp pages of a website but I want to remove just one page. How can I remove it please help.

    • WPBeginner Support says

      You would want to check with the plugin’s support for if that is currently an option. Normally, you should see an option on the page/post itself to not use AMP.

      Admin

  11. Laura says

    This is super easy to follow, so I’m so grateful to have found this post – but my AMP pages are still showing on Google, even after doing the redirection using the Redirection plugin. I’m not sure what to do, I saw in the comments something about caching, but I’m not sure how to do this?

    • WPBeginner Support says

      For Google’s cache, you would need to have Google recrawl your site with its URL checker or wait for Google to notice the update and change your links.

      Admin

  12. Adeel Qadir says

    Thanks for such a nice article and your way of explaining was very simple. With this helpful article, I have easily redirected my website and remove AMP successfully.

    Lots of thanks

  13. Parkashjit Singh says

    Hi Sir, i following all the steps but, i saw all the amp link on google which are ranked now how i can removed that amp ranked links on google. As well when i search on google about my site then i saw amp logo after my site tittle even now I’m not using apm. Now how i removed that icon.

  14. Robin says

    Hey I have page which have /?amp AMP format. So what change I have to do for proper redirection,

    As the code given above /(.*)\/amp is only redirection pages with /amp.

    Please tell me what change required for this ? thing.

    • WPBeginner Support says

      You could create an additional redirect where you add * before amp if you customized your amp URLs to show like that.

      Admin

  15. Subodh Gupta says

    I have disabled AMP on my site using the mentioned codes. But the post/page previews are showing in AMP mode. What to do? Using TagDiv NewsPaper theme.

    • WPBeginner Support says

      You would want to ensure you’ve cleared all of your caching for the most common reason for that.

      Admin

    • Adnan says

      Yours AMP pages are in Google cache, so when Google Bot re-index and check no rel=”amphtml” tag they index non-AMP page.

  16. Julia says

    Hi, this article sounds very useful, thanks for sharing!
    Before I will deactivate/uninstall AMP plugin as well, I have to ask a question.

    I have, by mistake, redirected few of amp links (with amp plugin already installed) to my normal url link:
    example.com/amp to example.com
    The reason why I did that redirect with redirection plugin, is that I had no knowledge of what amp is, and so I thought it’s an error, when I was migrating my site.
    Now my question is, should I rather disable all my redirects with amp and then disable/uninstall the AMP plugin and then do the bulk redirect ?

    Thank you for your help!

    • WPBeginner Support says

      To be safe you may want to create an export of your current redirects, remove them, then do the method in this article to prevent the possibility of multiple redirects

      Admin

  17. Pratik Bhatt says

    Hi,
    Can you tell me, when we can remove the redirection plugin. Does google remove the amp pages automatically after some time?

    • WPBeginner Support says

      Once the amp pages are no longer being indexed you can remove the redirection. It takes time and Google recrawling your site for the links to be removed.

      Admin

      • Pratik Bhatt says

        Thanks for the quicky reply.

        One more question, I’ve to ask, If I don’t do the redirection, then still google remove the amp pages after some time?

        Thanks.

  18. sam says

    Hi

    I followed the steps above. However, when searching on my mobile device the amp pages are still popping up (It’s only been a few hours so this may be why). When I search on desktop device and type in domain.com/amp the redirect works perfectly. Do you know why this is happening?

    • WPBeginner Support says

      You would need to clear any caching as the most common reason it would still be showing up.

      Admin

  19. Rahul sarawagi says

    Hey,

    I tried this way and now my website is not loading, it is giving an error message that

    ” redirected you too many times ”

    Please help me out in getting it back.

  20. Dietrich says

    I have done method 1 and cleared/deleted cache and it still shows the AMP version? Any tips how to fix?

    • WPBeginner Support says

      You would want to check that your host does not have caching enabled and your redirects do no have any typos

      Admin

  21. Subham says

    Hi,
    You guys are doing great.
    After creating AMP i have seen down in my traffic.
    So i decided to remove that and i did.
    I got many errors. So, i had to install amp again.
    Now finally this article helped me a lot to completely remove amp.
    Thank you very much WPbeginner.
    You are a lifesaver!

    • WPBeginner Support says

      If you would like you can. Be warned that would remove the redirects so if the links start appearing as broken links in your search console you may need to readd the redirects.

      Admin

  22. Enes says

    Hey. Thank you very much for the info but i had a question. It does not work with me method 1. it suppose to be non amp as soon as i do redirect right ?

    my website is https so i made it as https that what it should be ? Thanks in advance

    • WPBeginner Support says

      If you are using https then you would want the second field as https, as long as you don’t have caching then it should automatically update. If not, you would want to reach out to the plugin’s support for them to take a look.

      Admin

    • WPBeginner Support says

      As it would depend on if Google still links to your AMP pages, we don’t have a set time to remove it we would recommend at the moment.

      Admin

  23. Hiral says

    Hi, thanks for helping. I used method 1. All the blog posts are being displayed in proper format but home page, about, contact such pages are still being displayed in AMP. How to fix it?

    • WPBeginner Support says

      You may want to check with the author of the redirection plugin to ensure there isn’t a hiccup with the created redirect.

      Admin

  24. Elsaid says

    Thanks a lot
    Now I disable and delete AMP Plugin. and redirect lINKS by first method.
    but I have a question , If I want reinstall AMP plugin again
    what I should do about redirections????

  25. Kumarpal Shah says

    I’ve used Method 1 – Using Redirection Plugin. Now, my question is after adding the redirection is it necessary to keep plugin installed & activated?

    OR I can remove the plugin after adding the redirection?

  26. foodstyling says

    Hi,
    I used the redirection method and the AMP pages are redirected to fine, but the address remain as /?amp.

    Should I worry?

    • WPBeginner Support says

      If the redirection is working correctly, then you do not need to worry about the urls.

      Admin

  27. Mark Llego says

    I would like to know how can I 301 redirect if my amp url is structured like this

    site.com/amp/your-article/

    I am using better amp.

    Thank you.

  28. Joanna says

    Thank you so much! I was struggling with accidentally adding AMP pages and then removing them to losing a lot of traffic. Then, I felt defeated, so I reinstalled AMP. Method 1 with the Redirection plug-in was so easy I wish I had seen this sooner. THANKS!!

    • WPBeginner Support says

      If you removed AMP completely and clearing your cache did not remove the AMP versions you may want to check with your hosting provider to ensure they don’t have caching or similar that would be affecting the AMP pages.

      Admin

  29. Margaret says

    I’m using the Yoast plugin for redirects – what do I input and where to redirect my amp urls to my non-amp ones?

  30. katie larking says

    Hi I disabled the AMP plugin and set up a redirect as per the article. The redirect works, but the AMP pages are still in google index and working. How long until google replaces them with my non amp pages. Please let me know how long it takes organically vs anything I can do to speed this up that is proven to work. Thankyou!

  31. Aaron Hunter says

    This helped so much thank you! I’ve asked WP support, and they had nothing to offer me for a solution. The new version of WordPress.com doesn’t let you deactivate AMP so I used the Redirection plugin. Thank you again!!!

  32. Keith Whitworth says

    You are an absolute lifesaver! After implementing AMP, my user engagement dropped significantly, my site links in Google totally disappeared, my ranking (for my niche) was at the bottom of the barrel.

    AMP is not really designed for podcasts AT ALL.

    Once I decided it wasn’t going to work out, I deleted the plugin only to generate thousands of 404 errors related to AMP. I found myself creating unnecessary laborious work creating redirects every day as they popped up.

    Finally, I got frustrated and performed a search and replace in my database to remove amp/ which was a massive mistake. Suddenly my site was no longer available. I deleted the plugin and everything was restored but what to do about all the 404 errors related to AMP?

    I ran across your website through a Google search and presto. In one fell swoop, all my headaches disappeared. My sitelinks have been restored and yesterday I received an email from Google stating that mobile-first indexing was enabled on my site.

    I cannot thank you enough!

    • WPBeginner Support says

      Hi Keith,

      We are glad you found the article helpful :) You may want to join us on Twitter for more WordPress tips and tutorials. Next time you come across an issue, don’t forget to search WPBeginner first for a solution :)

      Admin

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.