redirection from /amp/ pages to ?amp permalink

#36474
  • Resolved Karanadiksha
    Rank Math free

    Hi,

    After several years using /amp/ permalink for AMP pages I plan to change all them to use the query ?amp instead of changing URLs.

    So, what 301 regex redirection do you recommend me for this change? I need a redirect which respects other query arguments.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can use the following regex redirection:

    Type Regex
    Source: (.*)/amp
    Destination: $1/?amp
    

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thanks Michael

    But im afraid this redirection would not work if there is other queries like:

    /?s=search&amp=

    When there is several queries then how must I made the redirect?

    Regards

    Todd
    Rank Math free

    Hi,

    As much as we would love to offer customized solution to each and every user we have, it just isn’t possible for a small company like ours with limited resources.

    Rank Math offers an option to add a regex within the redirections. You will need to find the regex pattern using Google and use it.

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

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

The ticket ‘redirection from /amp/ pages to ?amp permalink’ is closed to new replies.