URL goest to loop after 301 redirect

#589197
  • Resolved Anonymous
    Rank Math free

    Hey guys I have a problem with some pages being duplicated, for example
    domain.com/post
    domain.com/post/
    To solve this I was trying to do a 301 redirection from pages without / to pages that contain / at the end of url but every time I do this page can’t be opened anymore. I ger a “Too many redirections” error in Chrome. It is the same in other browsers.
    I try clearing the cache in WP, hosting, and browser but the issue still exists. If I remove the redirection page works again.
    I am doing all my redirections through RankMath and all other work but the ones where only “/” is different don’t.
    Is there some settings that is causing url to go to loop?

Viewing 1 replies (of 1 total)
  • Hello,

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

    Please note that Rank Math redirection doesn’t handle this kind of redirection. In order to redirect from your non-trailing slash URL to a trailing slash URL, you’ll have to use the .htaccess: https://rankmath.com/kb/how-to-redirect-to-urls-with-trailing-slash/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    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 ‘URL goest to loop after 301 redirect’ is closed to new replies.