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

[URGENT] I messed up all my sites by changing the primary domain, help!

Discussion in 'Web Hosting' started by Subsonic, Aug 28, 2011.

  1. Subsonic

    Subsonic Regular Member

    Joined:
    Mar 17, 2011
    Messages:
    367
    Likes Received:
    333
    Location:
    DNS root zone database
    Hey guys,

    I'm in big need of some advice here! I have a hosting account on Godaddy and I host 10 sites on the same hosting plan (yeah Godaddy sucks but it's not what causea my problems now...), those sites are not super important but they bring me decent money month after month so I don't want to lose them.

    So I had all the domains under a primary domain which I let expire some time ago. Yesterday I decided to change that primary domain to one that I currently have registered. Now all my Wordpress sites are messed up and when I try to open a post I get 404 error.

    What can I do to point the sites into right address? All the domains load fine:

    www.mydomainhere.com

    but all the posts like these are missing:

    www.mydomainhere.com/category/post


    Thanks in advance!

    Edit: Could it be a problem with .htaccess files or something?
     
    Last edited: Aug 28, 2011
  2. blackhatcodex

    blackhatcodex BANNED BANNED

    Joined:
    Aug 28, 2011
    Messages:
    144
    Likes Received:
    248
    It's because you didnt change the db info. Your database information is still trying to point to your previous domain and is probably giving you a 404 message right now.....scratch that...I see that you are saying it is...

    You'll have to change your database info or use WordPress's guide to change the URL:

    h**p://codex.*wordpress.*org/Changing_The_Site_URL
     
    • Thanks Thanks x 1
  3. JohnsonDaniel

    JohnsonDaniel Regular Member

    Joined:
    May 16, 2008
    Messages:
    389
    Likes Received:
    1,385
    Location:
    In a bright place---------------------------------
    Visit each WP database.
    Do a search in the WP options table for the "old" primary domain name.
    Once found, replace with the "new" one.
    Check the sites to see if they work now.

    Good Luck!
     
    • Thanks Thanks x 1
  4. Subsonic

    Subsonic Regular Member

    Joined:
    Mar 17, 2011
    Messages:
    367
    Likes Received:
    333
    Location:
    DNS root zone database
    Thanks alot guys, it seems like the problem was with the databases! :)
     
  5. ijof9

    ijof9 Power Member

    Joined:
    Mar 27, 2010
    Messages:
    536
    Likes Received:
    594
    Occupation:
    CTO
    Location:
    Western Europe
    I always like to keep a
    Code:
    define('WP_HOME','http://'.$_SERVER['HTTP_HOST']);
    define('WP_SITEURL','http://'.$_SERVER['HTTP_HOST']);
    in wp-config.php since I always install them in /.
     
    • Thanks Thanks x 1
  6. blackhatcodex

    blackhatcodex BANNED BANNED

    Joined:
    Aug 28, 2011
    Messages:
    144
    Likes Received:
    248
    There ya go ;)