This is an error with misconfiguring wordpress.
Please try google: https://www.google.com/search?q=cannot+login+to+wordpress+admin+after+changing+url&rlz=1C5CHFA_enDE926DE928&oq=cannot+access+wordpress+admin+after+url+ch&aqs=chrome.1.69i57j0i22i30i457.8679j0j7&sourceid=chrome&ie=UTF-8
This would be the solution:
– Using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides, access phpMyAdmin on your host, then find your DB, there check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure siteurl field and home field are correct. See https://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
– If you don’t feel comfortable messing with the database, contact your hosting provider to help you with this or try other methods described in the aforementioned codex
– If you haven’t already done, always backup your database before doing any actions, just in case something really goes wrong. You can never have enough backups!