-
I am using Better AMP Plugin for AMP and Rank Math plugin for SEO. Now, I want to disable AMP version of the website, and redirecting AMP traffic to normal responsive website. For this purpose, I have tried Redirection in Rank Math, and used,
Type Regex Source: (.*)/amp Destination: $1But, unfortunately, this so doesn’t redirect http://www.example.com/amp/123 to http://www.example.com/123 URLs in my website.
After this was not working, I have tried to put following code in .htaccess
// Redirect AMP to non-AMP RewriteEngine On RewriteCond %{REQUEST_URI} (.+)/amp(.*)$ RewriteRule ^ %1/ [R=301,L]But, unfortunately, this also doesn’t work. I have also tried to install Redirection plugin, which is not working along with Rank Math.
Please help me in this case and resolve my issue to disable AMP completely without 404 Errors. Waiting for your reply.
The ticket ‘DISABLE AMP and redirecting to non-amp not working’ is closed to new replies.