How to redirect all AMP URLs in WordPress

Posted on: November 23, 2022

Written by: Mick Sherry

If you’ve removed an Accelerated Mobile Pages (AMP) plugin from your WordPress website, you may need to redirect all the old /amp/ URLs back to the original, non-AMP URL.

The best way to do this is to:

Step 1: Download and install the free Redirection Plugin from the WordPress plugin repository.

 

Step 2: Once installed and activated, go to Tools –> Redirection to access the plugin.

 

Step 3: Click ‘Add New’ at the top of the screen.

 

Step 4: Fill out the following fields:

Redirect all /amp/ URLs in WordPress with Redirection plugin

Source URL: ^/(.*)\/amp

URL Options: Tick REGEX (very important, won’t work without this.)

Query Parameters: Exact Match in any Order

Target URL: https://www.your-site.com/$1

Note: I shouldn’t need to say this, but make sure you replace www.your-site.com with your actual website URL

Group: Redirections

 

Step 5: Click ‘Add Redirect’ and it should work perfectly.

This will blanket redirect all AMP URLs back to the original non-AMP URL across the whole website.

 

Not using WordPress? Redirect /amp/ with the .haccess file

You can also do this using the .htaccess file if you aren’t running WordPress.

Here is a quick guide on removing /amp/ using the .htaccess file.

Only advanced users should modify their .htaccess file. If you are unsure, send a support ticket to your hosting company and ask them to implement this for you.

 

Why would you need to redirect AMP pages?

This is a quick/useful way to redirect your old AMP URLs to avoid 404 errors or crawl errors in Google Search Console.

You will need to do this if you’ve previously used an AMP plugin on your website that you’ve recently disabled or removed.

Click-To-Call Send Message