How to properly remove AMP in WordPress
Disabling and deleting the AMP plugin is not enough, since amp versions of your site’s pages are still reachable. Besides removing the AMP plugin, you have to add the following code to your .htaccess file: RewriteEngine OnRewriteCond %{THE_REQUEST} /\?amp=1RewriteCond %{REQUEST_URI} (.+)/amp(.*)$RewriteRule ^(.+)$ /$1? [L,R=301] What it does is to redirect https://example.com/post/?amp=1 to https://example.com/post/ and also […]
How to properly remove AMP in WordPress Прочетете повече »