redirects causing internal server error

#67900
  • Resolved Claudio Cecarini
    Rank Math free

    Hi,
    I have notices that setting up new redirects slow down my server tremendously and eventually causing Internal server errors (500)
    where I am unable to access the website.
    I have set very simple rules and tested them and they seem to work, but I am new to regex and redirects so I might have made some mistake. However what I would like to know is: if I get into internal server error, what file should I edit via ftp in order to restore my server ? The .htaccess file in the website root folder does not seem to have any of the redirects that I have set-up in rankmath. So, in what file are the rules written?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alberto
    Rank Math business

    Hello,

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

    Redirects are saved in the database and Rank Math loads them in runtime so there is no file to edit. It shouldn’t slow down your site (we have seen sites with hundreds of different redirections) but maybe if you have a server with low resources (really low) could be. Maybe you could want to export them to .htaccess so they could reduce the load in your site and also if there is an issue, you can simply remove them from the .htaccess file and done.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Ciao Alberto, thanks for the reply.
    Ok so I can export to .htaccess and remove them from Rankmath. As a suggestion for further development I think it is not very wise to store redirects in the database… What if I type in a wrong regex expression in Rankmath causing an infinite redirects loop? It is very dangerous because you don’t have access to the admin panel anymore… storing them in a file or directly in .htaccess where it is easy to edit would be much safer. Or otherwise provide some docs on what SQL query you can run to fix the DB in case of disaster.

    Alberto
    Rank Math business

    Hello,

    Thank you for the suggestion, I agree with you. I will send it to the devs and hopefully they do something about it in a future update.

    Meanwhile, do you want us to set this thread closed? We will be here for any other issues or questions you might have in the future.

    Looking forward to help you.

    Yes please, set it closed, thanks !

    Alberto
    Rank Math business

    Hello Claudio,

    We are super happy that this helped you with your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.