Redirections by server side don’t redirect

#20885
  • Resolved Jakke Lehtonen
    Rank Math free

    I got several 404’s from urls I had proper 301 redirection in vhost of Apache2. Same happened when I was trying .htaccess. Again, the issue is syntax that Rank Math is offering. And we have somekind loose-loose situation here.

    Rank Math shows 404s like ^foo/bar$ but because of permalinks of WordPress incoming link is actually DOMAIN/foo/bar/ with ending slash. The offered is also without slash this way: RewriteRule ^foo/bar$ https://example.com/something/ [R=301,L]

    Because of permalink structure, Google has all indexed urls _with_ ending slash but redirect rule works only when asked url is _without_ ending slash.

    So, redirects work mainly with humans (and links) where slash is not used, but never with indexing bots.

    And now to loose-loose situation. If a redirect rule is ^foo/bar/$ as it should be, then everything else is redirected (like indexing bots), but humans who don’t use ending slash.

    This is not a bug but very close. The first solution is change $ to /$ because Redirection of Rank Math is now totally useless unless used from database (and that’s not very smart). The second one is give a hint of incoming url to a webmaster who makes the choice to use or not to use /$.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have submitted these findings to our development team and we will be reaching out in a short while to discuss this further.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirections by server side don’t redirect’ is closed to new replies.