• Hi,

    I’ve setup a redirect as shown. But when I attempt to actually use the redirect it’s changing it.

    I’ve tried:

    1. Setting this up with another plugin and it works fine.
    2. Removing it and re-adding the redirect.
    3. Clearing all cache
    4. Trying on an older staging site.
    5. Adjusting all the settings in the edit window.

    It doesn’t happen for all url’s, just some.

    Any ideas?

    • This topic was modified 8 months, 4 weeks ago by mooselt.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Godley

    (@johnny5)

    Redirection only does what you instruct it to do and it doesn’t change things. Is it possible you have another redirect that is matching the URL and redirecting somewhere else?

    Thread Starter mooselt

    (@mooselt)

    Hi @johnny5,

    I agree, it shouldn’t change anything. But if you notice the target I’ve set is /best-practices/3-4-installation/, BUT it chooses to redirect to /best-practices/windows3-4im11/. That’s part of the final nested url in the original url (/best-practices/manual/3-windows-doors/3-4-door-installation/windows3-4im11).

    I’ve also tested with other redirect plugins and they don’t have this issue, so there it’s coming from this plugin.

    Plugin Author John Godley

    (@johnny5)

    Is it possible you have another redirect that is matching the URL and redirecting somewhere else? You seem to have a lot of them.

    Thread Starter mooselt

    (@mooselt)

    Hi @johnny5,

    I agree, I’ve got 999+ redirects, but this isn’t one.

    It shows that’s redirecting to the appropriate URL but won’t do it. Even if there’s another redirect, it should go to the URL shown then redirect from there right?

    But it goes straight to the wrong URL.

    I’ve tested using another redirect plugin and this problem occurs only with this plugin.

    Plugin Author John Godley

    (@johnny5)

    I’ve tested using another redirect plugin and this problem occurs only with this plugin.

    Sure, you’ve mentioned this. However, this plugin also has 999+ other redirects.

    Even if there’s another redirect, it should go to the URL shown then redirect from there right?

    It will go to whatever redirect occurs first.

    Maybe you can export your redirects and send them to me?

    Thread Starter mooselt

    (@mooselt)

    Hi @johnny5,

    A most interesting find. I did an export of both the CSV and JSON, wasn’t sure what you preferred, and thought to look at the JSON for fun.

    In the JSON the /windows3-4im11/ is being added to the end. But if you look at the CSV and website, it’s not. Peculiar.

    JSON/CSV is available here – https://drive.google.com/drive/folders/16JHVw15KbICkWtyQs5l5VD0fCBISzT4t?usp=sharing

    Plugin Author John Godley

    (@johnny5)

    All data is from the same source so it doesn’t matter whether it is CSV or JSON. The URL you highlighted is the same as the CSV.

    As suggested, you have another redirect /best-practices/manual/.*/(.*)/ which is catching this URL.

    Thread Starter mooselt

    (@mooselt)

    Hi @johnny5,

    Thanks a lot for the help. I didn’t realize the wild card could be causing such an issue. Really appreciate it. Wishing well.

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

The topic ‘Incorrect redirection occuring’ is closed to new replies.