wordpress address url accidentally changed

Solutions on MaxInterview for wordpress address url accidentally changed by the best coders in the world

showing results for - "wordpress address url accidentally changed"
Maud
30 Nov 2016
1USE wp_database_name
2UPDATE wp_options SET option_value="new_value" WHERE option_name="siteurl";
3UPDATE wp_options SET option_value="new_value" WHERE option_name="home";
Cindy
27 Apr 2020
1// wp-content/theme_name/functions.php
2
3update_option( 'siteurl', 'new_value' );
4update_option( 'home', 'new_value' );
5
6// wp-config.php
7
8define( 'WP_HOME', 'new_value' );
9define( 'WP_SITEURL', 'new_value' );