Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

AMP Pages Redirect to Non-AMP Pages Not Working with Redirection Plugin

$
0
0

Replies: 0

Hi All!

I used AMP but didn’t know that it used it on my homepage. After disabling the AMP plugin, it still redirects to the AMP homepage when you are using a mobile phone whilst clicking on the search results on Google.

I used a bunch of methods prescribed on the internet, but could not fix this issue.

Redirect this:
/(.*)\/amp

To this:
http://helgasvelasmaja.lv/$1

I also tried:
/$1

As Regex, and still not forwarding to the regular URL.

Also, added this to to .htaccess file:

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

Does it need time for redirects to set-in or what? This is really frustrating …


Viewing all articles
Browse latest Browse all 59525

Trending Articles