Try removing those lines and then editing the URL of your site in the general settings page of the WordPress admin area. It’s the first method the article describes. If that one is successful, you don’t need to do both.
Also for future reference, you’ll want to take regular backups of your site (the site’s files and perhaps more importantly with WordPress, the database) so that you can easily and reliably reverse changes. See the official knowledge base article on backing up your website for more information.
2 Likes