Support » Fixing WordPress » Moving WP from PC to server – problem

  • korg007


    Hello Gurus,

    I moved my WP installation from my PC to the server and I’m having problems. The CSS (template) is not activated and many links still point to my “localhost” and therefore don’t work. I can’t even login to the backend.

    WHat I did:
    1. Used FTP to transfer all the files to the host
    2. used PHPmyadmin to export/import the tables on the server.
    3. changed wp-config accordingly with db info
    4. changed 2 entries in wp-options table (site-url and line 39)

    You can see the problem in action if you go to:

    Somehow, localhost is still referred to somewhere.

    THanks for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • See the following video on copying a blog from your server to XAMPP…just reverse the process.

    How to Copy Your Online WordPress Blog to XAMPP on Your Local Computer or USB Drive

    Hey Gilles,

    I can’t tell specifically without seeing your php, but it looks like your template/header is using absolute paths to js and css files. If you check the generated source of your webpage you’ll see things like

    <link rel="stylesheet" href="http://localhost/skid/wp-content/themes/freshy2/custom_my_style.css" type="text/css" media="screen"/>

    You should be using bloginfo php calls like this:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    There plenty of addresses which are stored this way for easy portability. Check out bloginfo in the tags.

    There may be other places you are calling the localhost- you could try a database search to see if you’ve got other instances…

    Hope this helps.



    thanks Joshuwar.

    1. How do I do a database search?
    2. how do I find where these localhost references are made?
    3. how did they get there in the first place? if I know how, I can prevent this from happening next time.




    Thanks guys!

    Figaro’s video did the trick!


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving WP from PC to server – problem’ is closed to new replies.