Changing siteurl in the database not working

WordPress has a number of standard methods to change or override these url options: using update_option() function in functions.php or anywhere else in the code, this way: update_option( ‘siteurl’, ‘https://yourdomain.com’ ); update_option( ‘home’, ‘https://yourdomain.com’ );This is most likely your case because update_option() edits db entries at runtime. In this case, just remove or comment out … Read more