Title: regex problems
Last modified: July 21, 2024

---

# regex problems

 *  Resolved [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/)
 * I want to redirect all URL like `https://www.domain.co.il/tags-%D7%A9` (the `%
   D7%A9` is Hebrew text) to the URL `https://www.domain.co.il/` I use this regex`
   ^https://www.domain.co.il/tags-(.*)` and check it on regex site on other string
   and seems to be right, but on the site the pages are not redirect. how I fix 
   this?

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17903758)
 * The source matches the path, not the domain. If you include the domain in the
   regex then you are matching that against the path, and that won’t be what you
   want.
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904319)
 * So I need to use only `/tags-(.*)` and forward it to the domain?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904345)
 * All source URLs are just for the path, including regular expressions.
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904545)
 * OK, so if I have `https://site.co.il/portfolio_category/name/` and I want to 
   redirect to `https://site.co.il/projects/commercial-projects/name/` I need to
   use in the source 
   `/portfolio_category/name/` and on the target `/projects/commercial-
   projects/name/` ?Full URL don’t work as they use to work or it is cache or cookies
   problem?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904563)
 * > Full URL don’t work as they use to work or it is cache or cookies problem?
 * The plugin has only ever worked with the path and the domain has never been part
   of the source URL. Nothing has changed here and you should continue to use the
   plugin as you always have done.
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904593)
 * I still don’t understand what is wrong, I working as I always worked I using 
   site:site-name in Google and copy the “not-found” full URL and paste it on the“
   Source URL” and pasting other full URL I want to redirect the not found page 
   to it.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904596)
 * Sure, and when you copy/paste the plugin removes the domain and you just save
   the path.
 * However, when you enter `^https://www.domain.co.il/tags-(.*)` then the `^` at
   the beginning means it won’t remove the domain and so it thinks you want to redirect
   a URL like this:
 * `https://www.domain.co.il/^https://www.domain.co.il/tags-(.*)`
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904640)
 * Why `/tags-(.*)` is working and `/portfolio-items/sa-(.*)` is not working? 
   I
   only enable “Regex” on both.
 * How can I check the regex and URL?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904652)
 * I can’t say why it’s not working. The list of reasons here probably applies:
 * [https://redirection.me/support/problems/url-not-redirecting/](https://redirection.me/support/problems/url-not-redirecting/)

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

The topic ‘regex problems’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/regex-problems/#post-17904652)
 * Status: resolved