Spostare un'installazione di Wordpress: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Stub}}
=Opzione 1=
* tabella wp_options
** siteurl
**home


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


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


wp-login.php can be used to (re-)set the URIs. Find this line:
=Opzione 2=


require( dirname(__FILE__) . '/wp-load.php' );
* wp-login.php can be used to (re-)set the URIs. Find this line:


and insert the following lines below:
require( dirname(__FILE__) . '/wp-load.php' );


//FIXME: do comment/remove these hack lines. (once the database is updated)
* and insert the following lines below:
 
<pre>
// remove these lines once the database is updated
update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );
</pre>


==Riferimenti==
==Riferimenti==
*[http://codex.wordpress.org/Moving_WordPress Moving WordPress « WordPress Codex]
*[http://codex.wordpress.org/Moving_WordPress Moving WordPress « WordPress Codex]
*[http://www.mydigitallife.info/how-to-move-wordpress-blog-to-new-domain-or-location/ How to Move WordPress Blog to New Domain or Location « My Digital Life]
*[http://www.mydigitallife.info/how-to-move-wordpress-blog-to-new-domain-or-location/ How to Move WordPress Blog to New Domain or Location « My Digital Life]

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