Unable to load WordPress local site after changing WordPress Address (URL) and Site Address (URL)

I was able to add WordPress Address (URL) and Site Address (URL) manually and access the local site again. What I did was add following code segments to following files.

  1. wp-config.php

    define('WP_HOME','http://www.local.abc.com');
    define('WP_SITEURL','http://www.local.abc.com');
    
  2. Functions.php

I have added following code just after opening of

   update_option('siteurl', 'http://www.local.abc.com' );
   update_option('home', 'http://www.local.abc.com' );

After that I have refresh site and it worked fine.

tech