• Resolved mstudioIL

    (@mstudioil)


    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

    (@johnny5)

    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

    (@mstudioil)

    So I need to use only /tags-(.*) and forward it to the domain?

    Plugin Author John Godley

    (@johnny5)

    All source URLs are just for the path, including regular expressions.

    Thread Starter mstudioIL

    (@mstudioil)

    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

    (@johnny5)

    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

    (@mstudioil)

    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

    (@johnny5)

    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

    (@mstudioil)

    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

    (@johnny5)

    I can’t say why it’s not working. The list of reasons here probably applies:

    https://redirection.me/support/problems/url-not-redirecting/

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.