How to redirect /?amp

#494317
  • Resolved Lari Salminen
    Rank Math free

    Hi guys!
    I have tried to get rid of my AMP pages.
    I have created a redirect för all /amp pages, but my AMP pages are using this url: /?amp
    How should I create a redirect for those pages so that they redirect to the original url?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    In order to redirect AMP URLs to non-AMP URLs, please try following the guide below:
    https://rankmath.com/kb/redirect-all-amp-pages-to-non-amp-pages/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Lari Salminen
    Rank Math free

    Thank you!

    I have done that, but it wont redirect the urls that are ending like this /?amp.

    Hello,

    Could you please share the affected URL so we can check?

    Meanwhile, please note that 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. In this case, no 404 error will be captured, and you need not worry about duplicate content issues since the page points out the canonical URL.

    Looking forward to helping you.

    Thank you.

    Lari Salminen
    Rank Math free

    Ok, then it’s all working as it should now.
    Thanks for the response.

    Md. Sakib Khandaker
    Rank Math agency

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘How to redirect /?amp’ is closed to new replies.