WordPress.org

Ready to get started?Download WordPress

Forums

Problem with transffering from local to server. (4 posts)

  1. ftstone
    Member
    Posted 2 years ago #

    Hey guys,

    I am encountering a problem migrating a localsite to the domain name jimmiearch.com

    I have done this before without any problem, but the hosting company I am using this time (FatCow) is making this very complicated.

    So this is what I have done so far.
    1-Loged on to my localhosted blog, and changed the url of the blog from localhost to jimmiearch.com
    2-Made an export of my local database.
    3-Transfer the local wordpress site to the domain using FileZilla
    4-Created a database, and uploaded the exported one
    5-Change the wp-config file in consequence.

    Yet nothing works.
    The main problem seems that when I click on a page for an example, the website is looking on the localsite path and not the one of the domain.
    (I am leaving the site up so you can see)

    If any one can be of any help, or needs more information it will be great.

    Thanks a lot!

  2. Xam 1.0
    Member
    Posted 2 years ago #

    First check the general-settings on your new blog, check if the url's are correct. If this doesn't fix it check the codex:
    http://codex.wordpress.org/Changing_The_Site_URL

  3. You need to change URLs in the database, either by changing the base URL by reading the link as pointed out above and also manually changing image URLs.

    Or, by running queries in phpmyadmin to change URLs for options, links, etc.:

    UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    
    UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com');
    
    UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');
    
    UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://olddomain.com', 'http://newdomain.com');

    And see Moving WordPress « WordPress Codex

  4. ftstone
    Member
    Posted 2 years ago #

    Thanks guys ! adding a Define line in the wp-config file, solved it nicely!

Topic Closed

This topic has been closed to new replies.

About this Topic