Answers for "WordPress Address (URL)"

PHP
8

wp-config change url wp-config

define('WP_HOME','http://example.com'); 
define('WP_SITEURL','http://example.com');
Posted by: Guest on May-22-2020
5

wordpress change site address

// Add to top of wp-config.php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Posted by: Guest on May-06-2020
0

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 “example.com” is the correct location of your site.

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );

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

update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Posted by: Guest on April-10-2021

Code answers related to "WordPress Address (URL)"

Browse Popular Code Answers by Language