Removing AMP pages Completely by Rankmath Redirection module

#216953
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Unfortunately, the Rank Math Redirection module doesn’t support yet redirecting URLs with query parameters like you have provided /postname/?amp.

    In the meantime, you may need to use .htaccess redirects or a separate plugin that allows this.

    However, our dev team is working on improving this module, and we would be adding some niceties in the future.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hello I have found this htaccess code from wpbeginner

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

    But this doesn’t work for me, I think there code if for /postname/amp

    Can you please help me with /postname/?amp

    Ankit
    Rank Math business

    Hello,

    Thank you for your reply.

    If you’ve configured your website to use the query parameter ?amp for AMP pages and disabled the AMP plugin on your website, then no redirection is required. When a visitor lands on these pages, the query parameter will be ignored, and the browser will load the canonical non-amp page for your visitor.

    You can learn more about here:
    https://rankmath.com/kb/redirect-all-amp-pages-to-non-amp-pages/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you @ankit-singh the article helped me. best wishes to the RankMath team

    Ankit
    Rank Math business

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Removing AMP pages Completely by Rankmath Redirection module’ is closed to new replies.