-
Hello,
I tried to do 301 redirects about amp but it doesn’t work.
I have several amp to redirect:
amp
amp
?namp
?namp=1
?noamp=1Could you help me, it’s very important.
My website is: https://fredericarminot..com
Frédéric
Paris, France
-
Hello,
I’m sorry to hear that you are facing issues with setting up 301 redirects for your AMP pages. To redirect all your AMP pages to non-AMP pages, you can follow the steps outlined in the Rank Math knowledgebase article here.
To redirect URLs with different query parameters like
?namp
,?namp=1
, and?noamp=1
, you can create regex redirections in Rank Math. Here is an example of how you can set up a regex redirection for these URLs:Create a Regex Redirection
- Source URL:
(.*)/amp
- Destination URL:
/$1
Make sure to select the matching option as Regex from the drop-down list when adding this redirection. This will help redirect URLs like
http://yoursite.com/yourpage/amp/
tohttp://yoursite.com/yourpage/
.If you encounter any difficulties or need further assistance, please feel free to reach out to our dedicated support team here. They are available 24/7 and will assist you promptly.
Best regards,
Rank Math Support TeamSources:
Redirect all AMP pages to non-AMP pages » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
Using an AMP Plugin with Rank Math SEO » Rank MathHello,
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
Good morning,
As requested, you will find the screen capture on this link : https://imgur.com/a/tsgrPnD
Thank you for your help (it’s urgent).
Frédéric
Paris, FranceHello,
The redirects are working fine. For example, https://fredericarminot.com/anxiete/guerir-lanxiete/amp is redirecting to https://fredericarminot.com/anxiete/guerir-lanxiete/
Please note that the free version of our plugin does not allow redirecting URLs with query parameters. You also don’t need to redirect URLs with ?amp, ?namp, etc., as they will load the content of the original page and have the canonical URL of the main page.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello,
If I understand you correctly, Regex redirection doesn’t work with the free plugin.
So, if I want it to work, I need to have the Pro (paid) version of your plugin ?
I’m asking because the address you give me (https://fredericarminot.com/anxiete/guerir-lanxiete/amp to https://fredericarminot.com/anxiete/guerir-lanxiete/) does redirect to the canonical address, but that’s not the case for 43 other pages: https://imgur.com/a/QaGb5Eq
Like, for example: this one: https://fredericarminot.com/phobie/phobie-du-dentiste/?nonamp=1
So I’ve got lots of pages with amp, /amp, /?amp, ?noamp, ?noamp= 1, etc. that aren’t redirected to the canonical page without amp.
What do you advise me to do (I’m in big trouble) ?
Thanks for your help.
Frédéric
Paris, FranceHello,
Apologies for the confusion.
Regex redirects should be working fine in the free version.
The redirects that are available in the Rank Math PRO version are for queried/parameter URLs.
Those URLs have the question mark (
?
) at the beginning as we have explained here:
https://rankmath.com/kb/setting-up-redirections/#parameterized-urlLooking 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.
- Source URL:
The ticket ‘AMP’ is closed to new replies.