Vill du inaktivera Google AMP på din WordPress website?
Många bloggare och websites som hoppade på Googles AMP-våg inaktiverar den nu av olika anledningar. AMP pages har lägre konverteringar, sidvisningar och övergripande engagement. Dessutom stöder den senaste versionen av Google Analytics inte Google AMP.
I den här artikeln visar vi dig hur du inaktiverar Google AMP på rätt sätt i WordPress.
Varför du bör inaktivera Google AMP i WordPress
Accelerated Mobile Pages (AMP) är ett open source-initiativ för att göra webben snabbare för mobilanvändare och förbättra användarupplevelsen.
Det gör den genom att visa pages med minimalistisk HTML och JavaScript. Detta allow the content to be hosted on Google AMP Cache. Google kan sedan visa denna cachelagrade version för användarna omedelbart när de klickar på din link i sökresultaten.
Men om du har valt att konfigurera Google AMP i WordPress kanske du känner att du har gjort fel val.
You are not alone. Många ägare av websites, Offentliggörare och onlinepublikationer har slutat använda AMP på sina WordPress bloggar.
Först kommer vi att gå igenom varför du kan överväga att inaktivera AMP på din WordPress website, och sedan kommer vi att gå igenom processen med dig.
Google Analytics 4 stöder inte AMP
Google Analytics 4 eller GA4 är den senaste versionen av Google Analytics som trackar din website och dina mobila appar i samma account. Den medför många förändringar, inklusive new tracking-metoder, rapporteringsfunktioner, metrics och reports.
Bland dessa förändringar är att GA4 inte officiellt stöder AMP för tillfället, och det är inte bekräftat om det kommer att fungera i framtiden. En av anledningarna till detta är att den trackar dina website- och app-besökare i samma egenskap.
Google har dock sagt att du bara kommer att kunna komma åt gamla data i Universal Analytics-egenskapen fram till den 1 juli 2024. Det innebär att du fortfarande kan komma åt Universal Analytics rapporter för att view tidigare data men inte kommer att kunna track det i den senaste versionen ännu.
Drastiskt insticksprogram i konverteringsgraden
Google AMP sätter många begränsningar för HTML/JavaScript. Detta innebär att många interaktiva element från din WordPress website försvinner med AMP, gillar optin-formulär och exit-intent popups.
Därför kan webbplatsens ägare inte uppmuntra användarna att prenumerera, fylla i kontaktformulär eller köpa saker.
Lägre sidvisningar av mobila användare
AMP visar inte din websites sidebar eller andra funktioner för att upptäcka content. Detta orsakar en betydande minskning av sidvisningar av mobila användare.
Faktum är att vissa experter på användarupplevelse föreslår att knappen close högst upp faktiskt uppmuntrar användare att återvända till Google search efter att ha läst din artikel istället för att browsing din website.
Lägre engagement hos användarna
Många webbplatser trivs med användarinteraktioner, gillar click-to-tweet widgets, användares rating, comments, och så vidare. Google AMP gör det ganska svårt för ägare av webbplatser att hålla användarna engagerade och interagera med deras content.
Ska du inaktivera Google AMP?
Svaret på den här frågan beror faktiskt på din website. Om mobila användare utgör majoriteten av din publik, kanske du fortfarande vill använda AMP.
Å andra sidan, om du har provat Google AMP och det har påverkat din konvertering negativt, bör du förmodligen inaktivera Google AMP på din website.
I motsats till vad många tror straffar Google inte webbplatser för att de ej använder AMP. You can still improve your website’s speed and performance on mobile to compete for a mobile search audience.
Med allt detta i åtanke, låt oss se hur du kan inaktivera AMP på din WordPress website.
Inaktivera tillägg för Google AMP i WordPress
Alla använder eller ej samma tillägg till WordPress för att add to AMP på sina websites. De grundläggande Settings är dock desamma oavsett vilket tillägg du använder.
Det första du behöver göra är att deactivate det AMP plugin som du har installerat.
Gå bara till sidan Tillägg ” Installerade tillägg från din WordPress dashboard och klicka på ”Deactivate” under AMP-pluginets namn.
Att bara deactivate pluginet kommer att inaktivera AMP-stödet på din website. Det finns dock några fler steg att följa för att säkerställa att din site är AMP-fri.
Setting Up Redirects för AMP Pages
Om du inaktiverar AMP-pluginet kommer AMP-versionen av dina artiklar att tas bort från webbplatsen. Men det räcker inte, särskilt inte om du har AMP aktiverat i mer än en vecka.
Det finns en god chans att Google redan har dessa sidor indexerade och kommer att fortsätta visa dessa sidor i sökresultaten. Om en användare klickar på en page och du har tagit bort den från din site kommer de att hitta en 404-sida eftersom det innehållet nu saknas.
För att fixa det här problemet måste du redirecta användare som kommer till AMP-sidor till de vanliga icke-AMP-sidorna.
Vi kommer att visa dig två olika metoder för att ställa in redirects för Google AMP, först med hjälp av ett plugin och sedan med hjälp av kod. Du kan välja den som är mest bekväm för dig.
Metod 1: Använda ett tillägg för omdirigering
Det enklaste sättet att ställa in redirect i WordPress är att använda All in One SEO (AIOSEO) plugin. Det är det bästa sökmotorsoptimeringspluginet för WordPress som erbjuder en kraftfull hantering av redirection.
Observera att du behöver AIOSEO Pro-licensen eftersom den innehåller redirect manager.
Först måste du installera och aktivera pluginet All in One SEO (AIOSEO). För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.
Efter aktivering kan du gå till All in One SEO ” Redirects från WordPress dashboard och klicka på knappen ”Activate Redirects”.
Detta kommer sedan att hjälpa dig att installera AIOSEO Redirection Manager-utökningen som hanterar den här funktionen. När du är aktiverad kommer du till tabben ”Redirects”. Här kan du enter käll- och mål-URL:erna för att ställa in redirect.
Först måste du klicka på ikonen ”Gear” i fältet Source URL och sedan aktivera checkboxen ”Regex”.
Följaktligen kan du add to följande kod i fältet Source URL:
^/(.*)\/amp
I fältet Target URL måste du add to din websites URL i följande format:
https://example.com/$1
Glöm inte att ersätta ”example.com” med ditt eget domain name.
Därefter kan du behålla ”Redirect Type” som 301 Moved Permanently. På så sätt kommer dina användare att permanent redirectas till de sidor som inte är AMP.
Slutligen klickar du på knappen ”Add Redirect” för att save your changes.
You can now visit the URL of a former AMP page on your website to see if the redirect is working properly.
AIOSEO hjälper dig också att spåra trasiga links på din website. Du kan snabbt identifiera AMP pages som leder till 404 error och redirecta dem. För mer detaljer, vänligen se vår guide om hur du trackar 404 pages och redirectar dem i WordPress.
Metod 2: Ställ in redirects manuellt i .htaccess
Om du inte vill använda ett plugin för att konfigurera redirects kan du konfigurera redirect med hjälp av .htaccess-filen på ditt WordPress webbhotell account.
Först måste du ansluta till din website med hjälp av en FTP-klient eller filhanteraren i cPanel. För mer detaljer, vänligen se vår guide om hur du använder FTP för att uploada filer i WordPress.
När du har anslutit dig måste du leta reda på .htaccess-filen i din websites rotfolder.
Därefter kan du editera filen i din root folder.
Sedan är det bara att add to följande kod längst ner i din .htaccess-fil:
// Redirect AMP to non-AMP
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]
Glöm inte att save dina ändringar och uploada filen tillbaka till din server.
You can now visit the URL for the former AMP version of any post on your website to ensure the redirect works as intended.
Vi hoppas att den här artikeln hjälpte dig att inaktivera Google AMP på rätt sätt i WordPress. Du kanske också vill se vår Step-by-Step ultimata guide till sökmotorsoptimering i WordPress för nybörjare och de bästa tipsen för att snabba upp WordPress.
/cta
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!
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.
Administratör
Ravi Bandakkanavar says
Thanks for the redirection trick. It worked like a rocket
WPBeginner Support says
Glad our guide could help!
Administratör
Vyom Manikya says
After following all the steps, now I’m getting this error ”Discovered – Currently not Indexed” for my non-amp pages.
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?
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.
Administratör
James says
Hey WPbeginner, Great article and helped me so much with my website .
Thanks
WPBeginner Support says
Glad our guide was helpful
Administratör
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.
Administratör
Hicham says
It works, Thanks so much ☺
WPBeginner Support says
Glad our guide was helpful
Administratör
Akshay Malhotra says
Thank you so much for this post. As always WP beginner rocks!
WPBeginner Support says
Glad you found our content helpful
Administratör
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.
WPBeginner Support says
You would want to set up redirection following step 2 for fixing that issue.
Administratör
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.
Administratör
Daniel says
Can I delete the Redirect plugin when all the amp pages are deindexed from Google?
WPBeginner Support says
We would recommend keeping the plugin active while using the redirect if you use the plugin method.
Administratör
Faiz Khan says
Today I desabled AMP plugin. When I checked my website with AMP URL it showing error.
WPBeginner Support says
That issue is solved with the redirects which we show in this article
Administratör
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.
WPBeginner Support says
For the 500 error, we would recommend first going through our guide below for possible solutions:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
Administratör
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.
Administratör
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.
Administratör
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
WPBeginner Support says
You’re welcome, glad our guide was helpful
Administratör
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.
WPBeginner Support says
You would need to have Google recrawl your site to start removing the content from Google’s search results.
Administratör
Parkashjit Singh says
How, is there any tutorial or bog. Please send me
WPBeginner Support says
You can find our article on how to do this below:
https://www.wpbeginner.com/wp-tutorials/how-to-ask-google-to-recrawl-urls-of-your-wordpress-site/
Raj Deep says
My site uses ssl and is on https. Should I use https or http in the redirection ?
WPBeginner Support says
Use HTTPS
Administratör
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.
Administratör
Bob Morris says
Thanks. I found this article after one too many posts with 17 indecipherable AMP errors
WPBeginner Support says
Glad our guide could be helpful
Administratör
Farblos Kay says
This is the best website to learn and fix anything WordPress. You guys are geniuses!
WPBeginner Support says
Thank you, glad you find our content helpful
Administratör
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.
Administratör
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.
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
Administratör
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.
Administratör
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.
WPBeginner Support says
Eventually yes
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.
Administratör
Kuldeep Singh says
Worked like a charm.
Thanks!
WPBeginner Support says
Glad our guide was helpful
Administratör
Jason says
Great Guide! Worked like a charm.
WPBeginner Support says
Thank you, glad our guide was helpful
Administratör
ahs shaikh says
thank you very much for this blog post…
WPBeginner Support says
You’re welcome
Administratör
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.
WPBeginner Support says
For the too many redirects error, you would want to take a look at our guide here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress/
Administratör
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
Administratör
Rohit verma says
i have done the first method but it still shows amp version what to do?
WPBeginner Support says
You would want to clear any caching as the most likely cause
Administratör
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
Glad our guide could be helpful
Administratör
Catherine Thomas says
THANK YOU!!!! Method #1 worked perfectly!!!
WPBeginner Support says
Glad our recommendations could help
Administratör
Akash Gogoi says
Can I disable redirection plugin after AMP completely gone from Google search result? Please help.
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.
Administratör
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.
Administratör
Suanlian Tangpua says
When should I remove the redirection?
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.
Administratör
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.
Administratör
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????
WPBeginner Support says
You would need to remove the redirections.
Administratör
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?
WPBeginner Support says
Using the plugin, you would need to keep the plugin active for the redirects to continue.
Administratör
Mario says
It worked for me wpbeginner thanks a lot
Amp is not advisable use
WPBeginner Support says
Glad our article could help
Administratör
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.
Administratör
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.
WPBeginner Support says
Hi Mark,
The htaccess method in this post should handle that redirect for you
Administratör
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
Glad our article could help
Administratör
Rajesh Ranjan says
hii, i followed each and every step but its not working on my WordPress website.
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.
Administratör
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?
Manh Nguyen says
I do as instructed, how long does my site return to normal ?
Thanks!
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!
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!!!
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
Administratör