1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Move Wordpress to New Server and Domain

Discussion in 'Blogging' started by btheory, Jan 30, 2009.

  1. btheory

    btheory Junior Member

    Joined:
    Dec 12, 2008
    Messages:
    123
    Likes Received:
    130
    Occupation:
    Ninja
    Location:
    Romper Room
    Home Page:
    Hey hey,

    Alright, I know this is not a new method or crazy informative post - but I'm in some serious need of assistance and the fucks over on the wordpress.org forums aren't doing anything for me.. so I immediately thought of all you kindhearted geniuses here at BHW. Here's where I'm at:

    -Developed/designed wp site on a sub-dir of one of my domains for new client

    -normal move procedure: backed up db, wp source files, etc.. I've done this a million times.

    -created new db on clients vps, imported db back up over top, find/replace to update tables from mydomain/sub-dir to clientscomain.com.

    -updated wp-config.php to reflect new db name/user/pass blah blah...

    -uploaded wp source stuff to clients root. fine.

    -updated .htaccess to remove the sub dir from previous installation on my end.

    I can log in, and view the home page, but somehow the permalinks still seem to be broken - and I can't figure out why?

    I know it could be DNS (I've already deleted installation on my end, not sure if that's effing things up)

    Also - he still has some files and folders in the root from his old website that he wanted to keep online, could this be affecting the permalinks (don't see any reason why it would).

    hxxp://www.beamingsun.com

    Can you guys see anything that I'm missing? I'm pulling my hair out here..

    MANY THANKS in advance.

    Cheers.
     
    Last edited: Jan 30, 2009
  2. gundamwing

    gundamwing Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 18, 2008
    Messages:
    1,274
    Likes Received:
    913
    try htaccess set permission 777
    and go to wp admin setting change your permalinks
     
  3. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    Did you run these 3 queries below? Permalinks are updated with the second sql statement.


    Code:
    UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    Code:
    UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com');
    
    Code:
    UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');
    
    Just change olddomain.com and newdomain.com to reflect your values.

    Hope this works for you!
     
    Last edited: Jan 30, 2009
  4. emgxxg

    emgxxg Registered Member

    Joined:
    Nov 3, 2008
    Messages:
    93
    Likes Received:
    523
    btw, for permalinks:
    some hosts including and especially Godaddy take some time for permalinks to become active. So the best thing to do would be to give your host some time to change it. The more you try fixing it the longer it usually take, let it be for a couple of hours and see if it helps.

    Cheers!!