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

wordpress problem: exporting site and installing on new address

Discussion in 'PHP & Perl' started by bizbez, Feb 29, 2012.

  1. bizbez

    bizbez Registered Member

    Joined:
    Jan 26, 2011
    Messages:
    86
    Likes Received:
    3
    Hi

    I try to export a wordpress site I have and install it on my pc at localhost/newsite (localhost can be another domain in the future).
    After I fixed all, the site?s homepage loads, but when I click a page, i get to the page?s url back it displays localhost main panel (all the folders etc?)
    I use wamp.
    WP ver 3.3.1

    What I did:
    1. Search replaced all domain.com to localhost/newsite
    2. On wp-config.php I changed the DB definitions from the domain.com server to the localhost DB.
    3. Then went to localhost?s phpmyadmin and imported the DB.

    What am I missing here?
    Why do the pages display the localhost admin panel instead of the page content (and show the page?s url)?

    Can anyone help here?
     
  2. jacobs

    jacobs Power Member

    Joined:
    Oct 10, 2008
    Messages:
    530
    Likes Received:
    152
    Home Page:
    I haven't experienced installing wordpress on a local wamp server, but when importing wp sites, you just have to import/export the files and the database and then edit the config php. im not sure what you did when you said "1. Search replaced all domain.com to localhost/newsite"
     
  3. nothingnothing

    nothingnothing Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 20, 2008
    Messages:
    275
    Likes Received:
    236
    Why You did this :

     
  4. nigel44

    nigel44 Registered Member

    Joined:
    Jan 18, 2009
    Messages:
    70
    Likes Received:
    42
    I did something similar to this yesterday but I just generated a Full Backup from my host and download it to my pc.
    I then uploaded the whole thing to my new host ((Host Winds) and they sorted it out for me so why dont you just do that?
     
  5. Bloox

    Bloox Regular Member

    Joined:
    Oct 20, 2009
    Messages:
    213
    Likes Received:
    46
    Location:
    Hamburg
    There are several entries in the database where you may change the URL, too. Try to search for localhost within the tables. When I switched WP from one URL to another I had to do that, too.
     
  6. johndoejohndoe

    johndoejohndoe Junior Member

    Joined:
    Feb 13, 2011
    Messages:
    177
    Likes Received:
    33
    In your database there are two entries you must change in the 'wp_options' table.
     
  7. bizbez

    bizbez Registered Member

    Joined:
    Jan 26, 2011
    Messages:
    86
    Likes Received:
    3
    ok,found the problem.
    I think it might be a WP bug.
    it turns out i did everything correctly.
    but after installation, i had to go the the permalinks settings, and just click save (dont change anything, just click save and everything worked fine).
     
  8. balsagoth007

    balsagoth007 Elite Member

    Joined:
    Oct 30, 2010
    Messages:
    2,101
    Likes Received:
    1,378
    Occupation:
    Doctor
    Use WPTwin next time.
     
  9. bizbez

    bizbez Registered Member

    Joined:
    Jan 26, 2011
    Messages:
    86
    Likes Received:
    3
    @balsagoth007 thanks bro,, good plugin.

    this is why i love BHW, top IM people out there!
    thanks all for the help.