Question : wordpress change site address
Answered by : daniel-stenson
// Add to top of wp-config.php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Source : https://wordpress.org/support/article/changing-the-site-url/ | Last Update : Wed, 13 May 20
Question : change url wordpress
Answered by : edison-quinones
/*
This is the safer way to do it.
Upload this file to your active theme directory.
Use your own URL instead of example.com, obviously.
Refresh in http://example.com/wp-login.php after adding/updating functions.php
Remove the lines or the remove the file after the site is up and running again.
more information here: https://wordpress.org/support/article/changing-the-site-url/#edit-functions-php
*/
update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Source : | Last Update : Wed, 04 May 22