Define Url WordPress

#It is possible to set the site URL manually in the wp-config.php file.

#Add these two lines to your wp-config.php, where “” is the correct location of your site.

define( 'WP_HOME', '' );
define( 'WP_SITEURL', '' );

#Important! Do not leave this code in the functions.php file. Remove them after the site is up and running again.

update_option( 'siteurl', '' );
update_option( 'home', '' );

Leave a Comment