# wordpress - update URL
###### tags: `wordpress`
If you are moving your wordpress site to new place and you need to change the site URL to reflect your new site.
```
1. Overwrite via wp-config.php file and then update in the admin console.
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
2. Update database directlly.
UPDATE `va_options` SET `option_value` = "<your new site URL>" WHERE `va_options`.`option_name`='home';
UPDATE `va_options` SET `option_value` = "<your new site URL>" WHERE `va_options`.`option_name`='siteurl';
# make sure they are updated.
SELECT * FROM va_options WHERE `va_options`.`option_name`='home';
SELECT * FROM va_options WHERE `va_options`.`option_name`='siteurl';
```