Spostare un'installazione di Wordpress: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 4: Line 4:
**home
**home


UPDATE `wp_options` SET `option_value` = 'https://new.domain.ext/dir' WHERE `wp_options`.`option_id` = 1;
UPDATE `wp_options` SET `option_value` = 'https://new.domain.ext/dir' WHERE `wp_options`.`option_id` = 2;


=Opzione 2=
=Opzione 2=

Latest revision as of 10:43, 28 October 2020

Opzione 1

  • tabella wp_options
    • siteurl
    • home


UPDATE `wp_options` SET `option_value` = 'https://new.domain.ext/dir' WHERE `wp_options`.`option_id` = 1; 
UPDATE `wp_options` SET `option_value` = 'https://new.domain.ext/dir' WHERE `wp_options`.`option_id` = 2;

Opzione 2

  • wp-login.php can be used to (re-)set the URIs. Find this line:
require( dirname(__FILE__) . '/wp-load.php' );
  • and insert the following lines below:
// remove these lines once the database is updated
update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );

Riferimenti