WordPress.org

Ready to get started?Download WordPress

Forums

Moving WP from PC to server - problem (5 posts)

  1. korg007
    Member
    Posted 4 years ago #

    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: http://www.skidcrease.com

    Somehow, localhost is still referred to somewhere.

    THanks for any help.

  2. figaro
    Member
    Posted 4 years ago #

    See the following video on copying a blog from your server to XAMPP...just reverse the process.

    http://educhalk.org/blog/?p=157

  3. Joshuwar
    Member
    Posted 4 years ago #

    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.

  4. korg007
    Member
    Posted 4 years ago #

    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.

    Gilles

  5. korg007
    Member
    Posted 4 years ago #

    Thanks guys!

    Figaro's video did the trick!

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic