How to Redirect AMP to non-AMP?

How to Redirect AMP to non-AMP?

Step 1:

De-activate the amp plugin from your wordpress panel.

Step 2:

Open your hosting panel

Step 3:

press ctrl+f and write htaccess. Now open the source code of .htaccess file and write this code at the bottom of your .htaccess file.

.httaccess code to Redirect AMP to non-AMP

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

Note: after some hours or days Google crawler start to redirecting AMP pages to non-AMP pages.

Subscribe for Friendship

Latest posts by Prof. Fazal Rehman Shamil (see all)