-
Hello! I created a redirect as per the documentation on this page, but all my /amp posts are going to an AMP post subject.
Example:
How can I solve this problem? Thanks!!
-
Hello! I apologize for the issue you are facing with the AMP redirects on your website. To redirect all AMP pages to non-AMP pages using Rank Math, you need to create a regex redirection. Here’s how you can do it:
-
Navigate to the Redirections section in Rank Math by following the steps provided in the documentation.
-
Add a new redirection and set the source and destination URLs as follows:
Regex Source URL: (.*)/amp Destination URL: /$1 -
Select the matching option as Regex from the drop-down list.
-
Activate the redirect by clicking on Add Redirection.
This regex redirection will redirect URLs like `https://rankmath.com/pricing/ to their non-AMP versions.
If you have followed these steps and are still facing issues, please ensure that the redirection is active and correctly set up in Rank Math. If you need further assistance, feel free to reach out to our dedicated support team here. Thank you for bringing this to our attention!
Sources:
Redirect all AMP pages to non-AMP pages » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
How to Redirect Non-WWW Version to WWW Version of Your Website » Rank MathMy configuration is exactly the same as the documentation.
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Can you please share a screenshot of the regex rule you have set for the redirection so we can check for you?
You can share the screenshot using https://imgur.com/upload.
Looking forward to helping you
Here it is:
Hello,
Please remove the website link
https://googlediscovery.com/$1in the ‘Destination URL’ box and replace it with just/$1Please refer to the image below to see how the redirect would look inside Rank Math

That should fix the issue.
You can check this guide for more information: https://rankmath.com/kb/redirect-all-amp-pages-to-non-amp-pages/
We hope this helps, and please donât hesitate to get in touch if you have any other questions.
Thank you.
I tried this, but the domain URL reappears there. It doesn’t just save /x1.
Sorry. /$1
Hello,
To help you investigate this issue further, we might need to take a closer look at your website and settings. Please follow these steps:
- Edit the first post on this ticket and include your WordPress and FTP logins in the Sensitive Data section. This is a secure section that only our support staff can access.
- Make sure you take a complete backup of your website before sharing the information with us.
- If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
- You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/
We appreciate your cooperation and patience.
Thank you for choosing Rank Math.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hey guys, did you get a chance to check out the problem?
Thanks!
Hello,
The access token has expired as we are unable to log in to your website with the link provided in the sensitive data section. The link redirects to the homepage.
Please renew the token and let us know so we can check this for you.
Looking forward to helping you.
Thank you.
Hello,
It appears there are media files with slugs similar to your redirect URLs, that are interfering with the redirection process.
When we disabled the âRedirect Attachmentsâ option in Rank Math from Rank Math > General Settings > Links > Redirect Attachments the regex redirect worked correctly.
If you want to activate the option to redirect attachments without it causing issues with the regex rule you have to change the slug of media files that are conflicting.
You can refer to this guide on how to do so: https://www.wpeditorial.com/how-to-change-media-library-slugs-in-wordpress/
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thanks for help me!!
Hello,
We are glad that everything has been sorted out.
Do you still need our assistance with anything else or we can go ahead to close the ticket?
We really look forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
-
The ticket ‘Redirect all AMP pages to non-AMP pages’ is closed to new replies.