Spostare un'installazione di Wordpress

From RVM Wiki
Jump to navigation Jump to search

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