How to change Wordpress URL from wp-config.php

To change wordpress site urls from wp-config.php file in wordpress site root. You just have to add the following to wp-config.php file

define( 'WP_HOME', '' );
define( 'WP_SITEURL', '' );

At thep point where is defined you can add your new website url and the site will be using these to access wordpress.