Title: Moving WordPress
Last modified: August 20, 2016

---

# Moving WordPress

 *  Resolved [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/moving-wordpress-31/)
 * Hi Everyone,
 * Ok so I’m going crazy haha. Hopefully you guys can help.
 * I’m trying to move a wordpress site i’ve built from one domain to another. I’m
   working with Dreamhost (who are really slow to respond and difficult to work 
   with… not recommended)
 * So i’m looking for a step by step guild to completely move the installation to
   work on another URL. If you wish to tackle this feat, please don’t assume anything
   as I believed I’d gone through all the necessary steps but have been unsuccessful
   so far.
 * For reference, here’s what I did
 * copied all the files in my ftp to my desktop
    backed up the sql database via 
   phpmyadmin set up the domain on my server set up a new database on my server 
   uploaded the files to the new domain on my server uploaded the sql backup on 
   my new database changed my config file to point to the new database add ‘defines’
   to update the urls of the wordpress installation.
 * I’ve ran out of time by 4 days :-/ urgh. So any help would be greatful! Thanks!!

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/moving-wordpress-31/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/moving-wordpress-31/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/moving-wordpress-31/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289098)
 * See [Moving_WordPress](http://codex.wordpress.org/Moving_WordPress) for step-
   by-step instructions.
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289099)
 * thanks… this is what i attempted to follow…. twice :-/
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping). If it’s 
   that urgent, consider [hiring someone](http://jobs.wordpress.net/).]_
 *  [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * (@ipstenu-dh)
 * DreamHost Rep
 * [13 years, 5 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289123)
 * Craig, I’m sorry you’re having a tough time getting help 🙁 If you want to share
   your domain, I can go take a look and see if this something easy we can fix or
   explain better what you need to do.
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289131)
 * hi, thanks 🙂 that would be great
 * I have the site at museum.bigyetimedia.com and I’m after making the transfer 
   over to jmaw.org.
 * I’ve now actually locked myself out of museum.bigyetimedia.com by changing the
   site url in the backend of wordpress, and amending the config doesn’t seem to
   be solving the issue.
 * so now i’m really stuck… urgh 🙁
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289141)
 * Remove the url lines in wp-config.php and try the functions.php method outlined
   in [Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL).
 *  [Ernie-C](https://wordpress.org/support/users/ernie-c/)
 * (@ernie-c)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289142)
 * Hey Craig,
 * It could be a few things. You may have transferred your .htaccess file from the
   old server to the new server and if your site was located in a subfolder you 
   may have to make some changes to your .htaccess file. It should look like this:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * Also, you can change the site url manually in the database by selecting the wp_options
   table and following these steps:
    1. Show 300 row(s) starting from record #0
    2. Check siteurl (option_id = 1) & home (option_id = 37)
    3. Click change (pencil) below the table rows
    4. Set both URL’s to your new URL and click Go
 * That’ll fix the site URL issue. Let me know if you’re still having the issue.
 *  [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * (@ipstenu-dh)
 * DreamHost Rep
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289154)
 * museum.bigyetimedia.com and museum.bigyetimedia.com/wp-admin still work (and 
   redirect correctly). I also peeked at your database, and it looked fine.
 * jmaw.org is up and running WP on our servers, so I think what would be easier
   for you is if you do this:
 * 1) Log in to museum.bigyetimedia.com and change the Home and Site URLs to jmaw.
   org (this will break your site for a moment, don’t panic!)
 * 2) FTP the files from museum.bigyetimedia.com to jmaw.org (they’re on different
   shell accounts, so you can’t just cp them over or change the SSH home, alas).
 * 3) We _don’t_ need to change the DB here. I mean, we could, but while you’ve 
   got different shell accounts, it’s all under the same owner (this is normal for
   us at DreamHost, you can make sub-users to let people do things like that without
   having access to your other sites, pretty cool!). As we say on the MySQL page
   on your panel, the DB server names are interchangeable 🙂
 * If you wanted to rename the DB, go to [https://panel.dreamhost.com/index.cgi?tree=goodies.mysql&amp](https://panel.dreamhost.com/index.cgi?tree=goodies.mysql&amp);
   and edit the old DB for museum.bigyetimedia.com to something for jmaw.org, but
   this is totally optional.
 * 4) This is the tricky step. You need to search and replace your posts in the 
   Database and change the URLs. There are two ways to do this: One is via phpMyAdmin,
   and the other is a plugin.
 * If you check out our directions for how to install with DreamHosters, you can
   follow step 4 (and only that one!) – [http://wiki.dreamhost.com/WordPress#Installing_with_DreamHosters](http://wiki.dreamhost.com/WordPress#Installing_with_DreamHosters)
 * It has pictures which I hope will explain better than words 😀
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289162)
 * ok so I went in to museum.bigyetimedia.com/wp-admin previously, changed the home
   and site url to jmaw.org. I then copied the files and use update_option(‘siteurl’,’
   [http://museum.bigyetimedia.com&#8217](http://museum.bigyetimedia.com&#8217););
   
   update_option(‘home’,’[http://museum.bigyetimedia.com&#8217](http://museum.bigyetimedia.com&#8217););
   in the functions doc to regain control of the site… however I now can’t log in
   to that site
 * I’m also at a lost of what to do after I’ve uploaded the files to jmaw.org. I’ve
   just uploaded them. As i’m obviously missing a beat with all this, I feel a little
   weary changing the original database as I’m sure I’ll do something wrong and 
   lose the clients several hundred posts and twice as many images.
 * So i’m currently locked out of museum.bigyetimedia.com and jmaw.org has the files
   copied from museum.bigyetimedia.com to my desktop to jmaw.org. Where do I go 
   from here?
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289164)
 * can’t login to either actually :-/
 *  [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * (@ipstenu-dh)
 * DreamHost Rep
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289167)
 * You can’t have both of them using the same DB at once, that’s just a nightmare
   all around 🙂
 * Make sure the functions file on jmaw.org does _not_ have the site and home URL
   options in there, first of all.
 * What happens when you go to jmaw.org/wp-admin and try to log in?
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289169)
 * Hi Mika,
 * So i’ve just double checked that theres no home and site amendments in the config
   or functions files for jmaw.org.
 * when i attempt to login to jmaw.org/wp-admin it actually just takes me over to
   museum.bigyetimedia.com :-/
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289171)
 * maybe it’s worth me getting museum.bigyetimedia.com back working – ie being able
   to login wp with the users, and then begin again setting up jmaw.org with a detailed
   step by step guide i can follow by you guys 🙂
 *  [Mika Epstein](https://wordpress.org/support/users/ipstenu-dh/)
 * (@ipstenu-dh)
 * DreamHost Rep
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289178)
 * > when i attempt to login to jmaw.org/wp-admin it actually just takes me over
   > to museum.bigyetimedia.com :-/
 * Hmm. That would mean you didn’t set the home and site URL correctly. And looking
   at your DB, I can see you did not 🙂 Ernie-C mentioned the DB changes you might
   have needed, and he was right. I flipped them over for you.
 * Try to log in now?
 *  [Ankit Singla](https://wordpress.org/support/users/aksingla/)
 * (@aksingla)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289179)
 * — Hello Craig..
 * Don’t panic — Until you have the old site up and running.
    You can always use
   that to start a new migrate.
 * As I see — in the first post – you listed the steps that you followed..
    They
   are right, you just missed one — which is causing a redirect to previous domain.
 * “Editing the .sql file”
    — I think you got what to do??
 * If you’re still in doubt ask again. I’m here – just busy with something.
 *  Thread Starter [craig](https://wordpress.org/support/users/craigheyworth/)
 * (@craigheyworth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/#post-3289181)
 * hmm, yes i believe I didn’t edit the sql file before uploading it to the new 
   database.
 * What would the process be for this?
 * And would we know how to get my login credentials to work again on the original
   site, museum.bigyetimedia.com?

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/moving-wordpress-31/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/moving-wordpress-31/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/moving-wordpress-31/page/2/?output_format=md)

The topic ‘Moving WordPress’ is closed to new replies.

## Tags

 * [dreamhost](https://wordpress.org/support/topic-tag/dreamhost/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 37 replies
 * 7 participants
 * Last reply from: [WP SITES](https://wordpress.org/support/users/wordpresssites/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/moving-wordpress-31/page/3/#post-3289210)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
