How to Redirect AMP to non-AMP?

By Prof. Fazal Rehman Shamil

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.

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.