How To Fix Your WordPress Site URL
Step-by Step, Fix WP URL
If you can’t log into your WordPress site because of incorrect settings in your site’s Settings – General WordPress Address -url _________ Site Address -url _____________
These setting are not in any if the Php config files but are located in the mySQL database. – just log into your hosting accounts Cpanel and change the database setting as this video will show. You’ll be all fixed in short order.
Some other methods of adding to or hacking other files can also work but this is the easiest and least challenging method.