[Tutorial] How to properly disable AMP

Posted in: Newspaper
Post count: 153

Well,

The new update was pretty good, but there were many complaining about amp. It was, indeed as expected from any other amp plugin. But there are many who have already tried using amp plugin, but deactivating the plugin is not simply the solution. You will have to redirect the users from having 404 error to the actual place it should have been.

Try the below methods:

1. Using redirect plugin-

Add this in source url- /(.*)\/amp

Then add this in target url-
http://example.com/$1

And tick regex.

2. Manually –

In .htaccess, add below code:

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

Post count: 16

Thanks drvarun.

Post count: 14

@drvarun5179 how we redirect mobile search to AMP page?

Post count: 14

how we redirect all mobile users to AMP pages?

Post count: 153

@themeforest58, you do not need to redirect. Google bot will find your website is amp ready, and your links shall become amp automatically.

Post count: 14

@drvarun5179 mobile users are not directed to amp page. my amp active.
if the mobile plug-in is active mobil users redirect to mobil plugin.
if the mobile plugin is not active mobil users redirect to desktop version.

Post count: 153

You just have to wait till google identifies your amp pages. Error comes only when your posts are not accessible on /amp pages.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.