Deleting the htaccess file solved this problem for me. I backed up first before deleting it. As soon as removed it, refreshed my WordPress login and the error stopped occurring. I haven’t created a new htaccess file yet but I thought it was worth noting the source of the problem.