Title: AMPforWP &amp; Redirection
Last modified: October 13, 2020

---

# AMPforWP & Redirection

 *  Resolved [testwp75](https://wordpress.org/support/users/testwp75/)
 * (@testwp75)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ampforwp-redirection/)
 * Hello,
 * I recently install AMPforWP on my website so now all my urls are urls/amp/ on
   mobile version. I have already configured more than 1k redirections with your
   plugin since I use it, how can I create an automatic rule to redirect the amps
   versions of these old redirects and for future ones?
 * Regards,

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ampforwp-redirection/#post-13536750)
 * You can use a regular expression to redirect multiple URLs:
 * [https://redirection.me/support/redirect-regular-expressions/](https://redirection.me/support/redirect-regular-expressions/)
 *  Thread Starter [testwp75](https://wordpress.org/support/users/testwp75/)
 * (@testwp75)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ampforwp-redirection/#post-13575400)
 * Hi, Yes I know but I can’t figure out how to build the REGEX rule for my case.
   Can you give it to me please?
 * Examples :
    [http://www.myurl-1](http://www.myurl-1) redirect to [http://www.myurl-2](http://www.myurl-2)
   [http://www.myurl-A](http://www.myurl-A) redirect to [http://www.myurl-B](http://www.myurl-B)
   etc x 10000
 * And now all my old & news urls are available with /amp/ at the end.
 * What regex rule do I have to put in your plugin to make it support AMPS versions
   of these urls?
 * Help please.. :/
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ampforwp-redirection/#post-13575439)
 * There are examples on the page I referenced, and there is a lot of information
   on the internet about regular expressions. You can use [https://regex101.com](https://regex101.com)
   to test your expression.

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

The topic ‘AMPforWP & Redirection’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/ampforwp-redirection/#post-13575439)
 * Status: resolved