Support » Fixing WordPress » Moving WordPress

  • Resolved Yeti


    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)
  • esmi


    Forum Moderator

    See Moving_WordPress for step-by-step instructions.



    thanks… this is what i attempted to follow…. twice :-/

    [No bumping. If it’s that urgent, consider hiring someone.]

    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.



    hi, thanks 🙂 that would be great

    I have the site at and I’m after making the transfer over to

    I’ve now actually locked myself out of 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 🙁



    Forum Moderator

    Remove the url lines in wp-config.php and try the functions.php method outlined in Changing_The_Site_URL.

    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]
    # 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. and still work (and redirect correctly). I also peeked at your database, and it looked fine. 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 and change the Home and Site URLs to (this will break your site for a moment, don’t panic!)

    2) FTP the files from to (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; and edit the old DB for to something for, 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!) –

    It has pictures which I hope will explain better than words 😀



    ok so I went in to previously, changed the home and site url to I then copied the files and use update_option(‘siteurl’,’’);
    update_option(‘home’,’’); 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 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 and has the files copied from to my desktop to Where do I go from here?



    can’t login to either actually :-/

    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 does not have the site and home URL options in there, first of all.

    What happens when you go to and try to log in?



    Hi Mika,

    So i’ve just double checked that theres no home and site amendments in the config or functions files for

    when i attempt to login to it actually just takes me over to :-/



    maybe it’s worth me getting back working – ie being able to login wp with the users, and then begin again setting up with a detailed step by step guide i can follow by you guys 🙂

    when i attempt to login to it actually just takes me over to :-/

    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?

    — 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.



    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,

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘Moving WordPress’ is closed to new replies.