Thanks for that. Have removed code from wp-login and put into wp-config but unfortunately it still doesn’t work. Still getting the same error.
I don’t understand why it isn’t working.
I get a 404 error on my usual login page or if I go to the example.com/login/ page I get unexpected ‘define’ (T_STRING) in /home/public/wp-login.php on line 980