how to update the site url and home url in database of wordpress using wp-config code example
Example 1: wordpress change site address
// Add to top of wp-config.php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Example 2: wp-config change url wp-config
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');