Title: error in redirection with source url parameter
Last modified: January 25, 2022

---

# error in redirection with source url parameter

 *  Resolved [davidlanau](https://wordpress.org/support/users/davidlanau/)
 * (@davidlanau)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-redirection-with-source-url-parameter/)
 * hello. I have I had an old store that was [https://midomino.com/es/url-PRODUCT](https://midomino.com/es/url-PRODUCT)
 * Now I have created two new websites:
    1- [https://mydomain.com](https://mydomain.com)
   with new content 2 – [https://store.mydomain.com/es/url-product](https://store.mydomain.com/es/url-product)
 * I want a redirect type
 * Source url: /en/.*
    Destination url: [https://store.mydomain.com/es/$1](https://store.mydomain.com/es/$1)
 * Where $1 is the parameter of the source url
 * I’ve tried to put (.*) but it doesn’t pick it up.
    Could you help me?) Thanks

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-redirection-with-source-url-parameter/#post-15287366)
 * Details about regular expressions can be found here:
 * [https://redirection.me/support/redirect-regular-expressions/](https://redirection.me/support/redirect-regular-expressions/)
 * You will need to use `(.*)`
 * Looking at your description your redirect doesn’t seem to match up. You said 
   you want to redirect `/es/` but have a redirect for `/en/`
 *  Thread Starter [davidlanau](https://wordpress.org/support/users/davidlanau/)
 * (@davidlanau)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-redirection-with-source-url-parameter/#post-15287733)
 * Sorry, it’s my fault, originally it’s:
    Source url: /es/.* Destination url: [https://store.mydomain.com/es/(.*)](https://store.mydomain.com/es/(.*))
 * It still doesn’t work. Any ideas?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-redirection-with-source-url-parameter/#post-15287743)
 * I would advise reading the regular expression guide.
 * The source needs `(.*)` the target does not, and should be what you originally
   had.

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

The topic ‘error in redirection with source url parameter’ 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: [4 years, 4 months ago](https://wordpress.org/support/topic/error-in-redirection-with-source-url-parameter/#post-15287743)
 * Status: resolved