This is an old revision of the document!


WordPress Setup & Configuration
Move Site

Using the Admin Panel:

Alternatively, you can change the database entries like this:

  • Edit file <wordpress>/wp-login.php, and find this line:
    require( dirname(__FILE__) . '/wp-load.php' );

    and insert the following lines below:

    //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option('siteurl', 'http://www.example.com/wordpress' );
    update_option('home',    'http://www.example.com/wordpress' );
  • Visit the site one time. Eg: http://www.example.com/wordpress
  • Remove those lines in <wordpress>/wp-login.php.

In phpMyAdmin, you can edit the following:

  • In the wordpress database, edit table 'wp-options'.
  • Change the following fields:
wp-options
option_name option_value
siteurl http://www.example.com/wordpress
home http://www.example.com/wordpress
fileupload_url Edit as needed (if this exists)

References