Spostare un'installazione di Wordpress: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
=Opzione 1= | |||
* tabella wp_options | |||
** siteurl | |||
**home | |||
=Opzione 2= | |||
wp-login.php can be used to (re-)set the URIs. Find this line: | * wp-login.php can be used to (re-)set the URIs. Find this line: | ||
require( dirname(__FILE__) . '/wp-load.php' ); | require( dirname(__FILE__) . '/wp-load.php' ); | ||
and insert the following lines below: | * 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] | ||
Revision as of 17:28, 23 March 2018
Opzione 1
- tabella wp_options
- siteurl
- home
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' );