wp-login.php?redirect_to=https problem
Please forgive me if I am posting in the wrong place but I am here to see if you can help me with some minutes of your time.
The problem is a website showing persistent internal errors all around the wp-login.php. I am able to login and access the front end with no difficulties. I have tried to debug but the errors do not show up o any pages. I have tested the theme, the plugins, etc etc I checked the htaccess file for corruptions (there are no corruptions) and I set the htaccess file up to debug and display but nothing showed. I did check the debug file on the server end it showed some errors around one plugin and when I deactivated that plugin there was no change with the Internal Errors. The host says that they can't see a problem. PHP is running at 7.2 PHP Memory is sufficient checking if the files and folders have the correct file permissions.
When I use an analysis tool such as Screaming Frog there are 15 links raising the internal error 500..and on occasion I have been redirected to a 'are you human' verification page with a tick box (this is because the host has brute force attack protection in place on the server and they cannot remove protection for just my website).The wp-login.php seems to redirect back to the main domain and an image but the standard message 'INternal Server Error 500' can be seen on the screen. One of the links looks like this:
https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2image-name-goes-here%2F
I'm hoping that someone here will have experienced this before or know what to do. I understand it's a process of elimination and I have done a fair bit so far.
Or is there a way I can check if that redirect is actually present somewhere so I can unlink it? I mean a redirect from https://example.com/wp-login.php?
I also heard that there might be links in the database which are redirecting it to such links as the one that I showed above.
Many thanks for your time in advance
ps: logging in on the front end is fine, but the errors show in Screaming Frog Spider Crawl and other analysis.
===============================================