If you have taken a backup of your WordPress database before making the changes, you can restore the backup to revert back to the previous URL configuration.